From: Michael Göhler Date: Mon, 13 Oct 2014 21:17:43 +0000 (+0200) Subject: use plus instead of backticks in unordered lists - looks nicer X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=e2f5b38a806b507a160194b885cd8893d5063282;p=smdp.git use plus instead of backticks in unordered lists - looks nicer --- diff --git a/src/viewer.c b/src/viewer.c index 4aec11e..1946e99 100644 --- a/src/viewer.c +++ b/src/viewer.c @@ -418,7 +418,7 @@ void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo char prompt[13]; strcpy(&prompt[0], CHECK_BIT(line->bits, IS_UNORDERED_LIST_1)? " | " : " "); strcpy(&prompt[4], CHECK_BIT(line->bits, IS_UNORDERED_LIST_2)? " | " : " "); - strcpy(&prompt[8], line->next && CHECK_BIT(line->next->bits, IS_UNORDERED_LIST_3)? " +- " : " `- "); + strcpy(&prompt[8], " +- "); wprintw(window, "%s", prompt); @@ -429,7 +429,7 @@ void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo offset = next_nonblank(line->text, 0); char prompt[9]; strcpy(&prompt[0], CHECK_BIT(line->bits, IS_UNORDERED_LIST_1)? " | " : " "); - strcpy(&prompt[4], line->next && CHECK_BIT(line->next->bits, IS_UNORDERED_LIST_2)? " +- " : " `- "); + strcpy(&prompt[4], " +- "); wprintw(window, "%s", prompt); @@ -439,7 +439,7 @@ void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo } else if(CHECK_BIT(line->bits, IS_UNORDERED_LIST_1)) { offset = next_nonblank(line->text, 0); char prompt[5]; - strcpy(&prompt[0], line->next && CHECK_BIT(line->next->bits, IS_UNORDERED_LIST_1)? " +- " : " `- "); + strcpy(&prompt[0], " +- "); wprintw(window, "%s", prompt);