mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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:
@@ -1067,7 +1067,7 @@ replace_line(linenr_T *line, linenr_T *end)
|
||||
}
|
||||
else
|
||||
{
|
||||
ml_delete(*line, FALSE);
|
||||
ml_delete(*line);
|
||||
deleted_lines_mark(*line, 1L);
|
||||
--(*end);
|
||||
--(*line);
|
||||
@@ -1862,7 +1862,7 @@ Delete(vimbuf, ...)
|
||||
|
||||
if (u_savedel(lnum, 1) == OK)
|
||||
{
|
||||
ml_delete(lnum, 0);
|
||||
ml_delete(lnum);
|
||||
check_cursor();
|
||||
deleted_lines_mark(lnum, 1L);
|
||||
}
|
||||
|
Reference in New Issue
Block a user