Changeset View
Changeset View
Standalone View
Standalone View
head/shells/bash/files/patch-lib_readline_display.c
--- lib/readline/display.c.orig 2009-01-04 11:32:32.000000000 -0800 | --- lib/readline/display.c.orig 2016-07-28 18:49:33 UTC | ||||
+++ lib/readline/display.c 2009-03-08 00:51:31.000000000 -0800 | +++ lib/readline/display.c | ||||
@@ -654,5 +654,8 @@ rl_redisplay () | @@ -743,7 +743,10 @@ rl_redisplay () | ||||
/* inv_lbreaks[i] is where line i starts in the buffer. */ | |||||
inv_lbreaks[newlines = 0] = 0; | inv_lbreaks[newlines = 0] = 0; | ||||
/* lpos is a physical cursor position, so it needs to be adjusted by the | |||||
number of invisible characters in the prompt, per line */ | |||||
+ if (local_prompt) | + if (local_prompt) | ||||
lpos = prompt_physical_chars + modmark; | lpos = prompt_physical_chars + modmark; | ||||
+ else | + else | ||||
+ lpos = 0; | + lpos = 0; | ||||
#if defined (HANDLE_MULTIBYTE) | #if defined (HANDLE_MULTIBYTE) | ||||
memset (line_state_invisible->wrapped_line, 0, line_state_invisible->wbsize * sizeof (int)); |