aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-14 13:25:34 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-14 16:10:09 +0800
commit10b8c6481fdf1f6a5d16ac89462c806b12114d1f (patch)
treec35178f3034cb475c7f0ac685890313cfc6c9b02
parent9c29c07705101b0117ea23e22ac3e5bb24e8c6c5 (diff)
downloadrneovim-10b8c6481fdf1f6a5d16ac89462c806b12114d1f.tar.gz
rneovim-10b8c6481fdf1f6a5d16ac89462c806b12114d1f.tar.bz2
rneovim-10b8c6481fdf1f6a5d16ac89462c806b12114d1f.zip
vim-patch:8.2.1074: Vim9: no line break allowed after some operators
Problem: Vim9: no line break allowed after some operators. Solution: Skip a line break after the operator. Add eval_may_get_next_line() to simplify checking for a line break. https://github.com/vim/vim/commit/9215f01218b2ed2cfe49c1f43fcf342bd9ffdded Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--src/nvim/eval.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 5c0083bf7d..b07ff2972e 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -3023,7 +3023,6 @@ static int eval7(char **arg, typval_T *rettv, evalarg_T *const evalarg, bool wan
*arg = skipwhite(*arg + 1);
ret = eval1(arg, rettv, evalarg); // recursive!
-
if (**arg == ')') {
(*arg)++;
} else if (ret == OK) {