diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-07-17 13:03:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-07-17 13:03:48 +0200 |
commit | 5d1bc78a2b9fbe3e3112afcde7c80eb19d5989f4 (patch) | |
tree | 5063777a3da9f1820380678fb550a554d55b7081 /src/eval.c | |
parent | fe6f18687761403470979feef8fe8ce582ae3b60 (diff) |
patch 7.4.782v7.4.782
Problem: Still a few problems with CTRL-A and CTRL-X in Visual mode.
Solution: Fix the reported problems. (Christian Brabandt)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eval.c b/src/eval.c index 5804efa6e1..f163829abc 100644 --- a/src/eval.c +++ b/src/eval.c @@ -1615,7 +1615,7 @@ call_vim_function(func, argc, argv, safe, str_arg_only, rettv) len = 0; else /* Recognize a number argument, the others must be strings. */ - vim_str2nr(argv[i], NULL, &len, TRUE, TRUE, &n, NULL); + vim_str2nr(argv[i], NULL, &len, TRUE, TRUE, &n, NULL, 0); if (len != 0 && len == (int)STRLEN(argv[i])) { argvars[i].v_type = VAR_NUMBER; @@ -5128,7 +5128,7 @@ eval7(arg, rettv, evaluate, want_string) else #endif { - vim_str2nr(*arg, NULL, &len, TRUE, TRUE, &n, NULL); + vim_str2nr(*arg, NULL, &len, TRUE, TRUE, &n, NULL, 0); *arg += len; if (evaluate) { @@ -18233,7 +18233,7 @@ f_str2nr(argvars, rettv) p = skipwhite(get_tv_string(&argvars[0])); if (*p == '+') p = skipwhite(p + 1); - vim_str2nr(p, NULL, NULL, base == 8 ? 2 : 0, base == 16 ? 2 : 0, &n, NULL); + vim_str2nr(p, NULL, NULL, base == 8 ? 2 : 0, base == 16 ? 2 : 0, &n, NULL, 0); rettv->vval.v_number = n; } @@ -21039,7 +21039,7 @@ get_tv_number_chk(varp, denote) case VAR_STRING: if (varp->vval.v_string != NULL) vim_str2nr(varp->vval.v_string, NULL, NULL, - TRUE, TRUE, &n, NULL); + TRUE, TRUE, &n, NULL, 0); return n; case VAR_LIST: EMSG(_("E745: Using a List as a Number")); |