summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-02 17:56:35 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-02 17:56:35 +0100
commit887c1fea4a114e7170091942d0446c8882701b5b (patch)
tree23173526918b54763e5eed1b26a7bdad3ac7884a /src/misc2.c
parentacf92d27c94811e3bd6b84cfd54246e91d44c355 (diff)
downloadvim-git-887c1fea4a114e7170091942d0446c8882701b5b.tar.gz
patch 7.4.1027v7.4.1027
Problem: No support for binary numbers. Solution: Add "bin" to nrformats. (Jason Schulz)
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc2.c b/src/misc2.c
index f13a80e22..9f8d7ad99 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -2780,7 +2780,7 @@ find_special_key(srcp, modp, keycode, keep_x_key)
bp += 3; /* skip t_xx, xx may be '-' or '>' */
else if (STRNICMP(bp, "char-", 5) == 0)
{
- vim_str2nr(bp + 5, NULL, &l, TRUE, TRUE, NULL, NULL, 0);
+ vim_str2nr(bp + 5, NULL, &l, STR2NR_ALL, NULL, NULL, 0);
bp += l + 5;
break;
}
@@ -2812,7 +2812,7 @@ find_special_key(srcp, modp, keycode, keep_x_key)
&& VIM_ISDIGIT(last_dash[6]))
{
/* <Char-123> or <Char-033> or <Char-0x33> */
- vim_str2nr(last_dash + 6, NULL, NULL, TRUE, TRUE, NULL, &n, 0);
+ vim_str2nr(last_dash + 6, NULL, NULL, STR2NR_ALL, NULL, &n, 0);
key = (int)n;
}
else