diff --git a/lua/smear_cursor/screen.lua b/lua/smear_cursor/screen.lua index aed33e3..5f03644 100644 --- a/lua/smear_cursor/screen.lua +++ b/lua/smear_cursor/screen.lua @@ -18,8 +18,8 @@ end M.get_screen_cmd_cursor_position = function() if vim.g.ui_cmdline_pos ~= nil then - local row = vim.g.ui_cmdline_pos[1] - local col = vim.g.ui_cmdline_pos[2] + vim.fn.getcmdpos() + 1 + local row = vim.g.ui_cmdline_pos["row"] + local col = vim.g.ui_cmdline_pos["col"] + vim.fn.getcmdpos() + 1 return row, col end