15 lines
467 B
Diff
15 lines
467 B
Diff
--- lib/readline/display.c
|
|
+++ lib/readline/display.c 2009-02-27 16:57:28.988001786 +0100
|
|
@@ -713,7 +713,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);
|
|
+ {
|
|
+ if (local_prompt_len > 0)
|
|
+ lpos -= _rl_col_width (local_prompt, n0, num);
|
|
+ }
|
|
else
|
|
#endif
|
|
lpos -= _rl_screenwidth;
|