mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-24 05:11:08 +02:00
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.
This commit is contained in:
parent
60b7d10a80
commit
0aa5829cc7
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue