rline_exp: indicate when input field overflows to the left

This commit is contained in:
K. Lange 2018-10-12 17:10:58 +09:00
parent e12508ca29
commit 4d5e977a24

View File

@ -758,6 +758,11 @@ static void render_line(void) {
printf("\033[?25l"); printf("\033[?25l");
printf("\033[0m\r%s", prompt); 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 i = 0; /* Offset in char_t line data entries */
int j = 0; /* Offset in terminal cells */ int j = 0; /* Offset in terminal cells */