mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.1954: Vim9: not all command modifiers are tested
Problem: Vim9: not all command modifiers are tested. Solution: Add tests for "keep" modifiers. Fix that marks are lost even though ":lockmarks" is used.
This commit is contained in:
@@ -1254,6 +1254,16 @@ do_filter(
|
||||
if (read_linecount >= linecount)
|
||||
// move all marks from old lines to new lines
|
||||
mark_adjust(line1, line2, linecount, 0L);
|
||||
else if (save_cmod_flags & CMOD_LOCKMARKS)
|
||||
{
|
||||
// Move marks from the lines below the new lines down by
|
||||
// the number of lines lost.
|
||||
// Move marks from the lines that will be deleted to the
|
||||
// new lines and below.
|
||||
mark_adjust(line2 + 1, (linenr_T)MAXLNUM,
|
||||
linecount - read_linecount, 0L);
|
||||
mark_adjust(line1, line2, linecount, 0L);
|
||||
}
|
||||
else
|
||||
{
|
||||
// move marks from old lines to new lines, delete marks
|
||||
|
Reference in New Issue
Block a user