[bim] Use macro _set_colors when rendering space at eol

This commit is contained in:
K. Lange 2018-10-01 14:23:56 +09:00
parent 060034242e
commit 59c646999d
1 changed files with 2 additions and 2 deletions

View File

@ -2186,9 +2186,9 @@ void render_line(line_t * line, int width, int offset) {
_set_colors(last_color ? last_color : COLOR_FG, COLOR_BG);
} else if (c.codepoint == ' ' && i == line->actual - 1) {
/* Special case: space at end of line */
set_colors(COLOR_ALT_FG, COLOR_ALT_BG);
_set_colors(COLOR_ALT_FG, COLOR_ALT_BG);
printf("·");
set_colors(COLOR_FG, COLOR_BG);
_set_colors(COLOR_FG, COLOR_BG);
} else {
/* Normal characters get output */
char tmp[7]; /* Max six bytes, use 7 to ensure last is always nil */