comparison src/popupmenu.c @ 20599:d571231175b4 v8.2.0853

patch 8.2.0853: ml_delete() often called with FALSE argument Commit: https://github.com/vim/vim/commit/ca70c07b72c24aae3d141e67d08f50361f051af5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 30 20:30:46 2020 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 May 2020 20:45:03 +0200
parents 4c317d8c1051
children 47f25a0c5a42
comparison
equal deleted inserted replaced
20598:d14c5a4a8dfa 20599:d571231175b4
815 && bt_nofile(curbuf) 815 && bt_nofile(curbuf)
816 && curbuf->b_p_bh[0] == 'w') 816 && curbuf->b_p_bh[0] == 'w')
817 { 817 {
818 // Already a "wipeout" buffer, make it empty. 818 // Already a "wipeout" buffer, make it empty.
819 while (!BUFEMPTY()) 819 while (!BUFEMPTY())
820 ml_delete((linenr_T)1, FALSE); 820 ml_delete((linenr_T)1);
821 } 821 }
822 else 822 else
823 { 823 {
824 // Don't want to sync undo in the current buffer. 824 // Don't want to sync undo in the current buffer.
825 ++no_u_sync; 825 ++no_u_sync;
858 *e = '\n'; 858 *e = '\n';
859 p = e + 1; 859 p = e + 1;
860 } 860 }
861 } 861 }
862 // delete the empty last line 862 // delete the empty last line
863 ml_delete(curbuf->b_ml.ml_line_count, FALSE); 863 ml_delete(curbuf->b_ml.ml_line_count);
864 864
865 // Increase the height of the preview window to show the 865 // Increase the height of the preview window to show the
866 // text, but no more than 'previewheight' lines. 866 // text, but no more than 'previewheight' lines.
867 if (repeat == 0 && use_popup == USEPOPUP_NONE) 867 if (repeat == 0 && use_popup == USEPOPUP_NONE)
868 { 868 {