summaryrefslogtreecommitdiff
path: root/src/diff.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/diff.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/diff.c')
-rw-r--r--src/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diff.c b/src/diff.c
index 16389fd92..88dc8a653 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -2764,7 +2764,7 @@ ex_diffgetput(exarg_T *eap)
{
// remember deleting the last line of the buffer
buf_empty = curbuf->b_ml.ml_line_count == 1;
- ml_delete(lnum, FALSE);
+ ml_delete(lnum);
--added;
}
for (i = 0; i < dp->df_count[idx_from] - start_skip - end_skip; ++i)
@@ -2786,7 +2786,7 @@ ex_diffgetput(exarg_T *eap)
// Added the first line into an empty buffer, need to
// delete the dummy empty line.
buf_empty = FALSE;
- ml_delete((linenr_T)2, FALSE);
+ ml_delete((linenr_T)2);
}
}
}