Add tests

This commit is contained in:
hrsh7th
2021-11-15 12:44:41 +09:00
parent 753f5b7c92
commit c194a3dbba
3 changed files with 80 additions and 48 deletions

View File

@@ -37,7 +37,7 @@ spec.before = function()
if i == 1 then
vim.api.nvim_win_set_cursor(0, { ctx.cursor.row, ctx.cursor.col + s - 2 })
else
vim.api.nvim_win_set_cursor(0, { ctx.cursor.row, s - 1 })
vim.api.nvim_win_set_cursor(0, { ctx.cursor.row + i - 1, s - 1 })
end
break
end