neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 10b8c6481fdf1f6a5d16ac89462c806b12114d1f
parent 9c29c07705101b0117ea23e22ac3e5bb24e8c6c5
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Fri, 14 Apr 2023 13:25:34 +0800

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>

Diffstat:
Msrc/nvim/eval.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git 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) {