Blame readline-5.2-inv.patch
|
Tomas Janousek |
4122ef6 |
fix cursor position when prompt has one invisible character (#358231)
|
|
Tomas Janousek |
4122ef6 |
|
|
Tomas Janousek |
4122ef6 |
Written-by: Miroslav Lichvar <mlichvar@redhat.com>
|
|
Tomas Janousek |
4122ef6 |
|
|
Tomas Janousek |
4122ef6 |
--- bash-3.2/lib/readline/display.c.inv 2007-10-31 17:14:31.000000000 +0100
|
|
Tomas Janousek |
4122ef6 |
+++ bash-3.2/lib/readline/display.c 2007-10-31 17:15:00.000000000 +0100
|
|
Tomas Janousek |
4122ef6 |
@@ -943,7 +943,7 @@ rl_redisplay ()
|
|
Tomas Janousek |
4122ef6 |
cpos_adjusted == 0 &&
|
|
Tomas Janousek |
4122ef6 |
_rl_last_c_pos != o_cpos &&
|
|
Tomas Janousek |
4122ef6 |
_rl_last_c_pos > wrap_offset &&
|
|
Tomas Janousek |
4122ef6 |
- o_cpos < prompt_last_invisible)
|
|
Tomas Janousek |
4122ef6 |
+ o_cpos <= prompt_last_invisible)
|
|
Tomas Janousek |
4122ef6 |
_rl_last_c_pos -= wrap_offset;
|
|
Tomas Janousek |
4122ef6 |
|
|
Tomas Janousek |
4122ef6 |
/* If this is the line with the prompt, we might need to
|