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/popupmenu.c b/src/popupmenu.c
index 2fe4cff..197cdca 100644
--- a/src/popupmenu.c
+++ b/src/popupmenu.c
@@ -817,7 +817,7 @@
{
// Already a "wipeout" buffer, make it empty.
while (!BUFEMPTY())
- ml_delete((linenr_T)1, FALSE);
+ ml_delete((linenr_T)1);
}
else
{
@@ -860,7 +860,7 @@
}
}
// delete the empty last line
- ml_delete(curbuf->b_ml.ml_line_count, FALSE);
+ ml_delete(curbuf->b_ml.ml_line_count);
// Increase the height of the preview window to show the
// text, but no more than 'previewheight' lines.