Skip to content

Commit 254ffa9

Browse files
committed
test: goto char multiline helper
1 parent 219acb1 commit 254ffa9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/helpers.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ function M.make_suite(lang, name, input, expected, go_to)
5555
local lines = vim.split(input, '\n', { plain = true, trimempty = false })
5656
vim.api.nvim_buf_set_lines(bufnr, 0, 1, false, lines)
5757
if type(go_to) == 'string' then
58-
vim.cmd.norm('f'..go_to)
58+
vim.cmd.norm('/'..go_to..'<cr>')
59+
vim.cmd.norm('noh<cr>')
5960
elseif type(go_to) == 'table' then
6061
vim.api.nvim_win_set_cursor(0, go_to)
6162
end

0 commit comments

Comments
 (0)