summaryrefslogtreecommitdiff
path: root/src/if_py_both.h
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/if_py_both.h
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/if_py_both.h')
-rw-r--r--src/if_py_both.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 9f563f0af..e262d1f75 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -4399,7 +4399,7 @@ SetBufferLine(buf_T *buf, PyInt n, PyObject *line, PyInt *len_change)
if (u_savedel((linenr_T)n, 1L) == FAIL)
RAISE_UNDO_FAIL;
- else if (ml_delete((linenr_T)n, FALSE) == FAIL)
+ else if (ml_delete((linenr_T)n) == FAIL)
RAISE_DELETE_LINE_FAIL;
else
{
@@ -4512,7 +4512,7 @@ SetBufferLineList(
{
for (i = 0; i < n; ++i)
{
- if (ml_delete((linenr_T)lo, FALSE) == FAIL)
+ if (ml_delete((linenr_T)lo) == FAIL)
{
RAISE_DELETE_LINE_FAIL;
break;
@@ -4588,7 +4588,7 @@ SetBufferLineList(
if (!PyErr_Occurred())
{
for (i = 0; i < old_len - new_len; ++i)
- if (ml_delete((linenr_T)lo, FALSE) == FAIL)
+ if (ml_delete((linenr_T)lo) == FAIL)
{
RAISE_DELETE_LINE_FAIL;
break;