neovim

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

commit 64a91f5ea2424674b0f2550e33f3f8512af75231
parent 10b8c6481fdf1f6a5d16ac89462c806b12114d1f
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Fri, 14 Apr 2023 13:31:41 +0800

vim-patch:8.2.1075: Vim9: no line break allowed in :echo expression

Problem:    Vim9: no line break allowed in :echo expression.
Solution:   Skip linebreak.

https://github.com/vim/vim/commit/7e8967fdcdf45caf08753bb791dc3779e78b34c8

Co-authored-by: Bram Moolenaar <Bram@vim.org>

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

diff --git a/src/nvim/eval.c b/src/nvim/eval.c @@ -7447,7 +7447,10 @@ void ex_echo(exarg_T *eap) const int did_emsg_before = did_emsg; const int called_emsg_before = called_emsg; - evalarg_T evalarg = { .eval_flags = eap->skip ? 0 : EVAL_EVALUATE }; + evalarg_T evalarg = { + .eval_flags = eap->skip ? 0 : EVAL_EVALUATE, + .eval_cookie = eap->getline == getsourceline ? eap->cookie : NULL, + }; if (eap->skip) { emsg_skip++;