Skip to content

Commit 581724e

Browse files
committed
test(bracketed): adjust yank test after a Neovim>=0.11 upstream fix
1 parent f667acf commit 581724e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_bracketed.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -3443,7 +3443,9 @@ T['yank()']['replaces region based on `[` marks `]`'] = function()
34433443
type_keys('yl')
34443444

34453445
backward('yank')
3446-
eq(get_lines(), { '_two_' })
3446+
-- Neovim>=0.11 has more correct behavior for setting `[`/`]` marks here
3447+
local ref = child.fn.has('nvim-0.11') == 1 and '_two__' or '_two_'
3448+
eq(get_lines(), { ref })
34473449
end
34483450

34493451
T['yank()']['respects `register_put_region()` to determine region boundaries'] = function()

0 commit comments

Comments
 (0)