diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-02-06 22:11:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-06 22:11:02 -0500 |
commit | b894fbcbe8a0a518753bd47cdc2bb621bf1389d8 (patch) | |
tree | d9ecd901643a31baf33311f959e08595da012a6e /src/nvim/eval.c | |
parent | 336eb70822970cea6797251043158ee6bd76bc69 (diff) | |
parent | f9c0af0180411429ad315a0d2974c477ac740f70 (diff) | |
download | rneovim-b894fbcbe8a0a518753bd47cdc2bb621bf1389d8.tar.gz rneovim-b894fbcbe8a0a518753bd47cdc2bb621bf1389d8.tar.bz2 rneovim-b894fbcbe8a0a518753bd47cdc2bb621bf1389d8.zip |
Merge pull request #13892 from janlazo/vim-8.1.2285
vim-patch:8.1.2285
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index a25b140b2f..f1df1ecc68 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -2121,9 +2121,10 @@ char_u *get_lval(char_u *const name, typval_T *const rettv, return NULL; } } - lp->ll_range = TRUE; - } else - lp->ll_range = FALSE; + lp->ll_range = true; + } else { + lp->ll_range = false; + } if (*p != ']') { if (!quiet) { @@ -2240,12 +2241,10 @@ char_u *get_lval(char_u *const name, typval_T *const rettv, return NULL; } - /* - * May need to find the item or absolute index for the second - * index of a range. - * When no index given: "lp->ll_empty2" is TRUE. - * Otherwise "lp->ll_n2" is set to the second index. - */ + // May need to find the item or absolute index for the second + // index of a range. + // When no index given: "lp->ll_empty2" is true. + // Otherwise "lp->ll_n2" is set to the second index. if (lp->ll_range && !lp->ll_empty2) { lp->ll_n2 = (long)tv_get_number(&var2); // Is number or string. tv_clear(&var2); |