mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 9.0.1380: CTRL-X on 2**64 subtracts two
Problem: CTRL-X on 2**64 subtracts two. (James McCoy) Solution: Correct computation for large number. (closes #12103)
This commit is contained in:
@@ -1410,7 +1410,7 @@ find_special_key(
|
||||
bp += 3; // skip t_xx, xx may be '-' or '>'
|
||||
else if (STRNICMP(bp, "char-", 5) == 0)
|
||||
{
|
||||
vim_str2nr(bp + 5, NULL, &l, STR2NR_ALL, NULL, NULL, 0, TRUE);
|
||||
vim_str2nr(bp + 5, NULL, &l, STR2NR_ALL, NULL, NULL, 0, TRUE, NULL);
|
||||
if (l == 0)
|
||||
{
|
||||
emsg(_(e_invalid_argument));
|
||||
@@ -1448,7 +1448,7 @@ find_special_key(
|
||||
{
|
||||
// <Char-123> or <Char-033> or <Char-0x33>
|
||||
vim_str2nr(last_dash + 6, NULL, &l, STR2NR_ALL, NULL,
|
||||
&n, 0, TRUE);
|
||||
&n, 0, TRUE, NULL);
|
||||
if (l == 0)
|
||||
{
|
||||
emsg(_(e_invalid_argument));
|
||||
|
Reference in New Issue
Block a user