mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 11:38:31 +00:00
fix(mark): give correct error message when mark is in another buffer (#19454)
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user