inccommand: preserve extmarks when undoing preview substitution

This commit is contained in:
Björn Linse
2021-02-04 11:20:54 +01:00
parent 94cf7bba00
commit aa50369897
2 changed files with 8 additions and 5 deletions

View File

@@ -504,11 +504,13 @@ describe('lua: nvim_buf_attach on_bytes', function()
feed ':%s/bcd/'
check_events {
{ "test1", "bytes", 1, 3, 0, 1, 1, 0, 3, 3, 0, 0, 0 };
{ "test1", "bytes", 1, 5, 0, 1, 1, 0, 0, 0, 0, 3, 3 };
}
feed 'a'
check_events {
{ "test1", "bytes", 1, 3, 0, 1, 1, 0, 3, 3, 0, 1, 1 };
{ "test1", "bytes", 1, 5, 0, 1, 1, 0, 1, 1, 0, 3, 3 };
}
end)