Browse Source

[bim] Use macro _set_colors when rendering space at eol

K. Lange 2 years ago
parent
commit
59c646999d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      apps/bim.c

+ 2 - 2
apps/bim.c

@@ -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 */