Browse Source

rline_exp: disable highlighting of space at eol

it just doesn't look good with tab completion adding spaces
K. Lange 4 years ago
parent
commit
d6fe16c406
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/rline_exp.c

+ 2 - 0
lib/rline_exp.c

@@ -870,11 +870,13 @@ static void render_line(void) {
 				set_colors(COLOR_ALT_FG, COLOR_ALT_BG);
 				printf("[U+%06x]", c.codepoint);
 				set_colors(last_color ? last_color : COLOR_FG, COLOR_BG);
+#if 0
 			} else if (c.codepoint == ' ' && i == line->actual - 1) {
 				/* Special case: space at end of line */
 				set_colors(COLOR_ALT_FG, COLOR_ALT_BG);
 				printf("·");
 				set_colors(COLOR_FG, COLOR_BG);
+#endif
 			} else {
 				/* Normal characters get output */
 				char tmp[7]; /* Max six bytes, use 7 to ensure last is always nil */