aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-02-06 22:11:02 -0500
committerGitHub <noreply@github.com>2021-02-06 22:11:02 -0500
commitb894fbcbe8a0a518753bd47cdc2bb621bf1389d8 (patch)
treed9ecd901643a31baf33311f959e08595da012a6e /src/nvim/eval.c
parent336eb70822970cea6797251043158ee6bd76bc69 (diff)
parentf9c0af0180411429ad315a0d2974c477ac740f70 (diff)
downloadrneovim-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.c17
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);