Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/test_align.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1524,11 +1524,13 @@ T['Align with preview']['works'] = new_set({
set_lines({ 'a_b_c', 'aaa_bbb_ccc' })
set_cursor(1, 0)
child.fn.setpos("'a", { 0, 2, 5, 0 })
child.fn.setpos("'b", { 0, 2, 4, 0 })

local init_keys = ({
['Normal-char'] = { 'gA', 'v', '`a' },
['Normal-line'] = { 'gA', 'V', 'j' },
['Normal-block'] = { 'gA', '<C-v>', '`a' },
-- On Neovim<0.13, forced-blockwise motion was end-exclusive
['Normal-block'] = { 'gA', '<C-v>', child.fn.has('nvim-0.13') == 1 and '`b' or '`a' },
['Visual-char'] = { 'v', '`a', 'gA' },
['Visual-line'] = { 'V', 'j', 'gA' },
['Visual-block'] = { '<C-v>', '`a', 'gA' },
Expand Down
4 changes: 2 additions & 2 deletions tests/test_surround.lua
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,12 @@ T['Add surrounding']['respects `config.respect_selection_type` in blockwise mode
set_lines({ 'aaaaa', 'bbbbb' })

-- - Create mark to be able to perform non-trivial movement
set_cursor(2, 3)
-- - On Neovim<0.13, forced-blockwise motion was end-exclusive
set_cursor(2, child.fn.has('nvim-0.13') == 1 and 2 or 3)
type_keys('ma')

set_cursor(1, 1)
type_keys('sa', '<C-v>', '`a', ')')
-- - As motion is end-exclusive, it registers end mark one column short.
eq(get_lines(), { 'a(aa)aa', 'b(bb)bb' })
eq(get_cursor(), { 1, 2 })
end
Expand Down
Loading