1
0
Fork 0
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:
Wayne Davison 2004-08-24 15:47:04 +00:00
parent 60b7d10a80
commit 0aa5829cc7

View file

@ -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;
}