Browse Source

rline_exp: indicate when input field overflows to the left

K. Lange 4 years ago
parent
commit
4d5e977a24
1 changed files with 5 additions and 0 deletions
  1. 5 0
      lib/rline_exp.c

+ 5 - 0
lib/rline_exp.c

@@ -758,6 +758,11 @@ static void render_line(void) {
 	printf("\033[?25l");
 	printf("\033[0m\r%s", prompt);
 
+	if (offset && prompt_width) {
+		set_colors(COLOR_ALT_FG, COLOR_ALT_BG);
+		printf("\b<");
+	}
+
 	int i = 0; /* Offset in char_t line data entries */
 	int j = 0; /* Offset in terminal cells */