mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
vim-patch:7.4.1027
Problem: No support for binary numbers.
Solution: Add "bin" to nrformats. (Jason Schulz)
887c1fea4a
This commit is contained in:
@@ -574,7 +574,7 @@ int find_special_key(
|
||||
if (bp[0] == 't' && bp[1] == '_' && bp[2] && bp[3]) {
|
||||
bp += 3; // skip t_xx, xx may be '-' or '>'
|
||||
} else if (STRNICMP(bp, "char-", 5) == 0) {
|
||||
vim_str2nr(bp + 5, NULL, &l, true, true, true, NULL, NULL, 0);
|
||||
vim_str2nr(bp + 5, NULL, &l, STR2NR_ALL, NULL, NULL, 0);
|
||||
bp += l + 5;
|
||||
break;
|
||||
}
|
||||
@@ -600,7 +600,7 @@ int find_special_key(
|
||||
if (STRNICMP(last_dash + 1, "char-", 5) == 0
|
||||
&& ascii_isdigit(last_dash[6])) {
|
||||
// <Char-123> or <Char-033> or <Char-0x33>
|
||||
vim_str2nr(last_dash + 6, NULL, NULL, true, true, true, NULL, &n, 0);
|
||||
vim_str2nr(last_dash + 6, NULL, NULL, STR2NR_ALL, NULL, &n, 0);
|
||||
key = (int)n;
|
||||
} else {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user