Skip to content

Commit

Permalink
test: goto char multiline helper
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Apr 12, 2024
1 parent 6b8ca32 commit fe38863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function M.make_suite(lang, name, input, expected, go_to)
local lines = vim.split(input, '\n', { plain = true, trimempty = false })
vim.api.nvim_buf_set_lines(bufnr, 0, 1, false, lines)
if type(go_to) == 'string' then
vim.cmd.norm('f'..go_to)
vim.fn.search(go_to)
elseif type(go_to) == 'table' then
vim.api.nvim_win_set_cursor(0, go_to)
end
Expand Down

0 comments on commit fe38863

Please sign in to comment.