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.
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 9f563f0..e262d1f 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -4399,7 +4399,7 @@
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 @@
{
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 @@
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;