Blob Blame History Raw
fix cursor position when prompt has one invisible character (#358231)

Written-by: Miroslav Lichvar <mlichvar@redhat.com>

--- bash-3.2/lib/readline/display.c.inv	2007-10-31 17:14:31.000000000 +0100
+++ bash-3.2/lib/readline/display.c	2007-10-31 17:15:00.000000000 +0100
@@ -943,7 +943,7 @@ rl_redisplay ()
 		  cpos_adjusted == 0 &&
 		  _rl_last_c_pos != o_cpos &&
 		  _rl_last_c_pos > wrap_offset &&
-		  o_cpos < prompt_last_invisible)
+		  o_cpos <= prompt_last_invisible)
 		_rl_last_c_pos -= wrap_offset;
 		  
 	      /* If this is the line with the prompt, we might need to