[bim] Use macro _set_colors when rendering space at eol
This commit is contained in:
parent
060034242e
commit
59c646999d
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue