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/buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buffer.c') diff --git a/src/buffer.c b/src/buffer.c index a657e72422..df92ecdbd4 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -103,13 +103,13 @@ read_buffer( { // Delete the binary lines. while (--line_count >= 0) - ml_delete((linenr_T)1, FALSE); + ml_delete((linenr_T)1); } else { // Delete the converted lines. while (curbuf->b_ml.ml_line_count > line_count) - ml_delete(line_count, FALSE); + ml_delete(line_count); } // Put the cursor on the first line. curwin->w_cursor.lnum = 1; -- cgit v1.2.3