summaryrefslogtreecommitdiff
path: root/src/change.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-30 20:30:46 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-30 20:30:46 +0200
commitca70c07b72c24aae3d141e67d08f50361f051af5 (patch)
tree98b26c267d6924c2a7464e08dc9fcacdd94d771f /src/change.c
parentd6cd5ffade84a1054fed23079133af3b837033bf (diff)
downloadvim-git-ca70c07b72c24aae3d141e67d08f50361f051af5.tar.gz
patch 8.2.0853: ml_delete() often called with FALSE argumentv8.2.0853
Problem: ml_delete() often called with FALSE argument. Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
Diffstat (limited to 'src/change.c')
-rw-r--r--src/change.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/change.c b/src/change.c
index 45d67044e..3a823b629 100644
--- a/src/change.c
+++ b/src/change.c
@@ -2317,7 +2317,7 @@ del_lines(long nlines, int undo)
if (curbuf->b_ml.ml_flags & ML_EMPTY) // nothing to delete
break;
- ml_delete(first, TRUE);
+ ml_delete_flags(first, ML_DEL_MESSAGE);
++n;
// If we delete the last line in the file, stop