diff options
author | Jari Aalto <jari.aalto@cante.net> | 1998-07-23 14:37:54 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:52 +0000 |
commit | bc4cd23ce958feda898c618215f94d8a4e8f4ffa (patch) | |
tree | 32fc9a13b636cb4d29873feddc533d3dfb25a917 /lib/readline/display.c | |
parent | cce855bc5b117cb7ae70064131120687bc69fac0 (diff) | |
download | bash-bc4cd23ce958feda898c618215f94d8a4e8f4ffa.tar.gz |
Imported from ../bash-2.02.1.tar.gz.
Diffstat (limited to 'lib/readline/display.c')
-rw-r--r-- | lib/readline/display.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/readline/display.c b/lib/readline/display.c index edb5b20d..f7ec69b2 100644 --- a/lib/readline/display.c +++ b/lib/readline/display.c @@ -423,7 +423,14 @@ rl_redisplay () contents of the command line? */ while (lpos >= screenwidth) { +#if 0 temp = ((newlines + 1) * screenwidth) - ((newlines == 0) ? wrap_offset : 0); +#else + /* XXX - possible fix from Darin Johnson <darin@acuson.com> for prompt + string with invisible characters that is longer than the screen + width. */ + temp = ((newlines + 1) * screenwidth) + ((newlines == 0) ? wrap_offset : 0); +#endif inv_lbreaks[++newlines] = temp; lpos -= screenwidth; } |