diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-13 19:32:06 -0700 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-13 19:32:06 -0700 | 
| commit | 9cf8cf605d85ec043d4e39f73ac42c7482c6f901 (patch) | |
| tree | b0a8ec8985c5bdfb1882ee847ff64b42c98d3e0a /src/nvim/eval.c | |
| parent | 427cf16e44d047c14e0ca1b95eb09fc8b8eb2f3d (diff) | |
| parent | 6aae0e7c943267d2109ae20ec5086791c3b94a5e (diff) | |
| download | rneovim-9cf8cf605d85ec043d4e39f73ac42c7482c6f901.tar.gz rneovim-9cf8cf605d85ec043d4e39f73ac42c7482c6f901.tar.bz2 rneovim-9cf8cf605d85ec043d4e39f73ac42c7482c6f901.zip | |
Merge #11015 from justinmk/getdigits
getdigits: introduce `strict`, `def` parameters
Diffstat (limited to 'src/nvim/eval.c')
| -rw-r--r-- | src/nvim/eval.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/nvim/eval.c b/src/nvim/eval.c index fbfc5a5f76..00b9fcf646 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -2936,10 +2936,10 @@ void ex_lockvar(exarg_T *eap)    char_u      *arg = eap->arg;    int deep = 2; -  if (eap->forceit) +  if (eap->forceit) {      deep = -1; -  else if (ascii_isdigit(*arg)) { -    deep = getdigits_int(&arg); +  } else if (ascii_isdigit(*arg)) { +    deep = getdigits_int(&arg, false, -1);      arg = skipwhite(arg);    } @@ -15775,7 +15775,7 @@ static void f_setreg(typval_T *argvars, typval_T *rettv, FunPtr fptr)            yank_type = kMTBlockWise;            if (ascii_isdigit(stropt[1])) {              stropt++; -            block_len = getdigits_long((char_u **)&stropt) - 1; +            block_len = getdigits_long((char_u **)&stropt, true, 0) - 1;              stropt--;            }            break; | 
