From ca70c07b72c24aae3d141e67d08f50361f051af5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 30 May 2020 20:30:46 +0200 Subject: 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. --- src/quickfix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/quickfix.c') diff --git a/src/quickfix.c b/src/quickfix.c index 4b3f164000..f3ad4cde20 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -4499,7 +4499,7 @@ qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last) // delete all existing lines while ((curbuf->b_ml.ml_flags & ML_EMPTY) == 0) - (void)ml_delete((linenr_T)1, FALSE); + (void)ml_delete((linenr_T)1); } // Check if there is anything to display @@ -4533,7 +4533,7 @@ qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last) if (old_last == NULL) // Delete the empty line which is now at the end - (void)ml_delete(lnum + 1, FALSE); + (void)ml_delete(lnum + 1); } // correct cursor position -- cgit v1.2.3