mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 18:06:30 +00:00
fix(api): handle clearing out last line of non-current buffer
fixes #24911
This commit is contained in:
@@ -2523,7 +2523,7 @@ static int ml_delete_int(buf_T *buf, linenr_T lnum, bool message)
|
||||
set_keep_msg(_(no_lines_msg), 0);
|
||||
}
|
||||
|
||||
int i = ml_replace(1, "", true);
|
||||
int i = ml_replace_buf(buf, 1, "", true);
|
||||
buf->b_ml.ml_flags |= ML_EMPTY;
|
||||
|
||||
return i;
|
||||
|
Reference in New Issue
Block a user