mirror of
https://github.com/neovim/neovim.git
synced 2025-12-02 06:53:05 +00:00
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().
8b6256f6ec
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user