fix(mark): give correct error message when mark is in another buffer (#19454)

This commit is contained in:
zeertzjq
2022-07-21 17:42:17 +08:00
committed by GitHub
parent 6a7d00469b
commit c15e9d3746
4 changed files with 14 additions and 10 deletions

View File

@@ -157,6 +157,13 @@ describe('named marks', function()
os.remove(file1)
end)
it("errors when using a mark in another buffer in command range", function()
feed('ifoo<Esc>mA')
command('enew')
feed('ibar<Esc>')
eq('Vim(print):E20: Mark not set', pcall_err(command, [['Aprint]]))
end)
it("leave a context mark when moving with '", function()
command("edit " .. file1)
feed("llmamA")