diff options
author | Jason Schulz <jason@schulz.name> | 2015-12-29 15:17:16 -0800 |
---|---|---|
committer | Jason Schulz <jason@schulz.name> | 2016-01-15 18:21:06 -0800 |
commit | 7ad3f077dc68a83b2cdfb7b1d04de9266d7978a9 (patch) | |
tree | aaa485d0853be6b46865cf2d87064ec0299f0cde /src/nvim/option.c | |
parent | dddbf9c5fa061cb03d6b6240ac6610b68b9304f5 (diff) | |
download | rneovim-7ad3f077dc68a83b2cdfb7b1d04de9266d7978a9.tar.gz rneovim-7ad3f077dc68a83b2cdfb7b1d04de9266d7978a9.tar.bz2 rneovim-7ad3f077dc68a83b2cdfb7b1d04de9266d7978a9.zip |
Add support for binary numbers
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 2ac1abeeba..4ba5c4deeb 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -260,7 +260,7 @@ typedef struct vimoption { static char *(p_ambw_values[]) = {"single", "double", NULL}; static char *(p_bg_values[]) = {"light", "dark", NULL}; -static char *(p_nf_values[]) = {"octal", "hex", "alpha", NULL}; +static char *(p_nf_values[]) = {"bin", "octal", "hex", "alpha", NULL}; static char *(p_ff_values[]) = {FF_UNIX, FF_DOS, FF_MAC, NULL}; static char *(p_wop_values[]) = {"tagfile", NULL}; static char *(p_wak_values[]) = {"yes", "menu", "no", NULL}; @@ -1431,7 +1431,7 @@ do_set ( } else if (*arg == '-' || ascii_isdigit(*arg)) { // Allow negative (for 'undolevels'), octal and // hex numbers. - vim_str2nr(arg, NULL, &i, true, true, &value, NULL); + vim_str2nr(arg, NULL, &i, true, true, true, &value, NULL); if (arg[i] != NUL && !ascii_iswhite(arg[i])) { errmsg = e_invarg; goto skip; |