0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3660: overflow check uses wrong number

Problem:    Overflow check uses wrong number.
Solution:   Divide by ten.
This commit is contained in:
Bram Moolenaar
2021-11-24 13:40:29 +00:00
parent 03725c5795
commit 9b0e82f35e
2 changed files with 3 additions and 1 deletions

View File

@@ -630,7 +630,7 @@ getcount:
del_from_showcmd(4); // delete the digit and ~@%
#endif
}
else if (ca.count0 >= 999999999L)
else if (ca.count0 > 99999999L)
{
ca.count0 = 999999999L;
}