diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-18 08:48:29 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-02-18 09:48:32 +0800 |
commit | 330b3da51e60fbf26e25dc57b8c463ace6f2a933 (patch) | |
tree | ecc5fe59379dd0c06501447fe2cd0edee8f89a35 /src | |
parent | 3ed800e998e22a975e17ee54e675410148850c75 (diff) | |
download | rneovim-330b3da51e60fbf26e25dc57b8c463ace6f2a933.tar.gz rneovim-330b3da51e60fbf26e25dc57b8c463ace6f2a933.tar.bz2 rneovim-330b3da51e60fbf26e25dc57b8c463ace6f2a933.zip |
vim-patch:8.2.3660: overflow check uses wrong number
Problem: Overflow check uses wrong number.
Solution: Divide by ten.
https://github.com/vim/vim/commit/9b0e82f35ed4e98414333e71b71ca56219683d16
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/normal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index a50f85dc7a..7fe6469527 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -824,7 +824,7 @@ static bool normal_get_command_count(NormalState *s) if (s->c == K_DEL || s->c == K_KDEL) { s->ca.count0 /= 10; del_from_showcmd(4); // delete the digit and ~@% - } else if (s->ca.count0 >= 999999999L) { + } else if (s->ca.count0 > 99999999L) { s->ca.count0 = 999999999L; } else { s->ca.count0 = s->ca.count0 * 10 + (s->c - '0'); |