aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/keymap.c
diff options
context:
space:
mode:
authorwatiko <service@mail.watiko.net>2016-01-15 15:06:12 +0900
committerwatiko <service@mail.watiko.net>2016-02-01 03:47:08 +0900
commita5f361e470c816ec9258fb815befafdef52b000b (patch)
treec35c74316b7a4f1a6aa486d41eaf9fae3b122f45 /src/nvim/keymap.c
parent7fc996abf6151364ec045607a6e1ab51e32920e5 (diff)
downloadrneovim-a5f361e470c816ec9258fb815befafdef52b000b.tar.gz
rneovim-a5f361e470c816ec9258fb815befafdef52b000b.tar.bz2
rneovim-a5f361e470c816ec9258fb815befafdef52b000b.zip
vim-patch:7.4.1027
Problem: No support for binary numbers. Solution: Add "bin" to nrformats. (Jason Schulz) https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Diffstat (limited to 'src/nvim/keymap.c')
-rw-r--r--src/nvim/keymap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c
index 6aa42a9801..65c808eb06 100644
--- a/src/nvim/keymap.c
+++ b/src/nvim/keymap.c
@@ -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 {
/*