99eaf946d6
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=0e684b6d69ca471a3edec76de2eeecc1
15 lines
473 B
Diff
15 lines
473 B
Diff
--- lib/readline/display.c
|
|
+++ lib/readline/display.c 2006-11-13 15:55:24.000000000 +0000
|
|
@@ -714,7 +714,10 @@ rl_redisplay ()
|
|
inv_lbreaks[++newlines] = temp;
|
|
#if defined (HANDLE_MULTIBYTE)
|
|
if (MB_CUR_MAX > 1 && rl_byte_oriented == 0 && prompt_multibyte_chars > 0)
|
|
- lpos -= _rl_col_width (local_prompt, n0, num, 1);
|
|
+ {
|
|
+ if (local_prompt_len > 0)
|
|
+ lpos -= _rl_col_width (local_prompt, n0, num, 1);
|
|
+ }
|
|
else
|
|
#endif
|
|
lpos -= _rl_screenwidth;
|