2009-08-28 17:45:57 +02:00
|
|
|
Index: lib/readline/display.c
|
|
|
|
===================================================================
|
|
|
|
--- lib/readline/display.c.orig
|
|
|
|
+++ lib/readline/display.c
|
|
|
|
@@ -714,7 +714,10 @@ rl_redisplay ()
|
2006-12-15 18:03:59 +01:00
|
|
|
inv_lbreaks[++newlines] = temp;
|
|
|
|
#if defined (HANDLE_MULTIBYTE)
|
2009-03-03 18:12:53 +01:00
|
|
|
if (MB_CUR_MAX > 1 && rl_byte_oriented == 0 && prompt_multibyte_chars > 0)
|
2006-12-15 18:03:59 +01:00
|
|
|
- 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;
|