mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 10:55:40 +00:00
vim-patch:8.2.0853: ml_delete() often called with FALSE argument
Problem: ml_delete() often called with FALSE argument.
Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
ca70c07b72
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
committed by
zeertzjq
parent
c8912d7329
commit
9b5545103e
@@ -4180,7 +4180,7 @@ static void qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int q
|
||||
while ((curbuf->b_ml.ml_flags & ML_EMPTY) == 0) {
|
||||
// If deletion fails, this loop may run forever, so
|
||||
// signal error and return.
|
||||
if (ml_delete(1, false) == FAIL) {
|
||||
if (ml_delete(1) == FAIL) {
|
||||
internal_error("qf_fill_buffer()");
|
||||
return;
|
||||
}
|
||||
@@ -4250,7 +4250,7 @@ static void qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int q
|
||||
}
|
||||
if (old_last == NULL) {
|
||||
// Delete the empty line which is now at the end
|
||||
ml_delete(lnum + 1, false);
|
||||
ml_delete(lnum + 1);
|
||||
}
|
||||
|
||||
qfga_clear();
|
||||
|
||||
Reference in New Issue
Block a user