diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2004-08-24 15:47:04 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2004-08-24 15:47:04 +0000 |
commit | 0aa5829cc7e488550b061330d349453e457dbb57 (patch) | |
tree | 1dd9aee3e70767f198f7460497ebc5ee0b775acb /Src/Zle | |
parent | 60b7d10a80aec0bc9135f463d1d8f9c2f6dd675c (diff) | |
download | zsh-0aa5829cc7e488550b061330d349453e457dbb57.tar.gz zsh-0aa5829cc7e488550b061330d349453e457dbb57.tar.xz zsh-0aa5829cc7e488550b061330d349453e457dbb57.zip |
When downline() calls upline() or visa versa (due to a negative zmult),
the value of "n" that was returned should be negative but was positive. Fixes some problems with {down,up}-line-or-history and others.
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_hist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index c6fb7acdb..97635b142 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -92,7 +92,7 @@ upline(void) if (n < 0) { zmult = -zmult; - n = downline(); + n = -downline(); zmult = -zmult; return n; } @@ -176,7 +176,7 @@ downline(void) if (n < 0) { zmult = -zmult; - n = upline(); + n = -upline(); zmult = -zmult; return n; } |