From c15e9d3746ee0aa6a9d80596bffc19e9ac9612bc Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 21 Jul 2022 17:42:17 +0800 Subject: fix(mark): give correct error message when mark is in another buffer (#19454) --- test/functional/editor/mark_spec.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/functional/editor/mark_spec.lua b/test/functional/editor/mark_spec.lua index 1eb76aa628..2440867c6e 100644 --- a/test/functional/editor/mark_spec.lua +++ b/test/functional/editor/mark_spec.lua @@ -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('ifoomA') + command('enew') + feed('ibar') + 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") -- cgit