diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-02 21:38:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-02 21:38:22 +0200 |
commit | c17e66c5c0acd5038f1eb3d7b3049b64bb6ea30b (patch) | |
tree | 580fb479d6dc515270ec050a4913303d2e7fea37 /src/evalfunc.c | |
parent | 3ac498c8a1c3570c296093a5d9425b2a3a7cdb29 (diff) | |
download | vim-git-c17e66c5c0acd5038f1eb3d7b3049b64bb6ea30b.tar.gz |
patch 8.2.0886: cannot use octal numbers in scriptversion 4v8.2.0886
Problem: Cannot use octal numbers in scriptversion 4.
Solution: Add the "0o" notation. (Ken Takata, closes #5304)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index bfc811bff..d8e88e5c6 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -7737,7 +7737,7 @@ f_str2nr(typval_T *argvars, typval_T *rettv) switch (base) { case 2: what |= STR2NR_BIN + STR2NR_FORCE; break; - case 8: what |= STR2NR_OCT + STR2NR_FORCE; break; + case 8: what |= STR2NR_OCT + STR2NR_OOCT + STR2NR_FORCE; break; case 16: what |= STR2NR_HEX + STR2NR_FORCE; break; } vim_str2nr(p, NULL, NULL, what, &n, NULL, 0, FALSE); |