aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-05 14:31:40 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-11-05 14:44:26 +0800
commit48405df046e6d15c26aeea429fa44950ccc1a8ac (patch)
tree5ddd340c991998302b74e46862ebdd35cd982b8e /src/nvim/eval.c
parent5731f406fa6ddf9c8340329ec1e534cd968df94f (diff)
downloadrneovim-48405df046e6d15c26aeea429fa44950ccc1a8ac.tar.gz
rneovim-48405df046e6d15c26aeea429fa44950ccc1a8ac.tar.bz2
rneovim-48405df046e6d15c26aeea429fa44950ccc1a8ac.zip
vim-patch:8.2.3919: Vim9: wrong argument for append() results in two errors
Problem: Vim9: wrong argument for append() results in two errors. Solution: Check did_emsg. Also for setline(). Adjust the help for appendbufline(). https://github.com/vim/vim/commit/8b6256f6ec075cca40341e61ebc9f538b4902dd1 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 5b8cbcfbb3..1200ba20ba 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -5200,6 +5200,7 @@ linenr_T tv_get_lnum_buf(const typval_T *const tv, const buf_T *const buf)
if (tv->v_type == VAR_STRING
&& tv->vval.v_string != NULL
&& tv->vval.v_string[0] == '$'
+ && tv->vval.v_string[1] == NUL
&& buf != NULL) {
return buf->b_ml.ml_line_count;
}