Skip to content

Commit 0e4923a

Browse files
committed
test: goto char multiline helper
1 parent 219acb1 commit 0e4923a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/helpers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ 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.search(go_to)
5959
elseif type(go_to) == 'table' then
6060
vim.api.nvim_win_set_cursor(0, go_to)
6161
end

0 commit comments

Comments
 (0)