diff options
author | watiko <service@mail.watiko.net> | 2016-01-15 15:06:12 +0900 |
---|---|---|
committer | watiko <service@mail.watiko.net> | 2016-02-01 03:47:08 +0900 |
commit | a5f361e470c816ec9258fb815befafdef52b000b (patch) | |
tree | c35c74316b7a4f1a6aa486d41eaf9fae3b122f45 /src/nvim/option.c | |
parent | 7fc996abf6151364ec045607a6e1ab51e32920e5 (diff) | |
download | rneovim-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/option.c')
-rw-r--r-- | src/nvim/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index dd512d2dba..18269f4c18 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -1432,7 +1432,7 @@ do_set ( } else if (*arg == '-' || ascii_isdigit(*arg)) { // Allow negative (for 'undolevels'), octal and // hex numbers. - vim_str2nr(arg, NULL, &i, true, true, true, &value, NULL, 0); + vim_str2nr(arg, NULL, &i, STR2NR_ALL, &value, NULL, 0); if (arg[i] != NUL && !ascii_iswhite(arg[i])) { errmsg = e_invarg; goto skip; |