forked from aniani/vim
patch 8.2.2969: subtracting from number option fails when result is zero
Problem: Subtracting from number option fails when result is zero. (Ingo Karkat) Solution: Reset the string value when using the numeric value. (closes #8351)
This commit is contained in:
@@ -1439,6 +1439,7 @@ ex_let_one(
|
||||
case '%': n = (long)num_modulus(numval, n,
|
||||
&failed); break;
|
||||
}
|
||||
s = NULL;
|
||||
}
|
||||
else if (opt_type == gov_string
|
||||
&& stringval != NULL && s != NULL)
|
||||
|
Reference in New Issue
Block a user