diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-07 06:48:12 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-07 06:48:12 -0800 |
commit | 1f99c936f42034b9e5a9f7e62644546af5084da8 (patch) | |
tree | b9517572ab102cd93a45653d83dc8b786b5302ca | |
parent | d93d4f85e18e68d3ae5da2a0b1e85e275b898b44 (diff) | |
download | readline-1f99c936f42034b9e5a9f7e62644546af5084da8.tar.gz readline-1f99c936f42034b9e5a9f7e62644546af5084da8.tar.bz2 readline-1f99c936f42034b9e5a9f7e62644546af5084da8.zip |
wrap
-rw-r--r-- | display.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -677,7 +677,10 @@ rl_redisplay () inv_lbreaks[++newlines] = temp; #if defined (HANDLE_MULTIBYTE) if (MB_CUR_MAX > 1 && rl_byte_oriented == 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; |