mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user