From 9ae12483735b0133af575c17c444882ee36f0b1a Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 17 Jan 2024 19:41:00 -0800 Subject: [PATCH] Fix cursor call --- lua/guid.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/guid.lua b/lua/guid.lua index 750a8ac..99feb0b 100644 --- a/lua/guid.lua +++ b/lua/guid.lua @@ -163,7 +163,7 @@ local function guid_object() local match_pos = find_pattern_at_pos(guid_pattern, get_cursor_pos(), false) if match_pos then local cursor_pos = get_cursor_pos() - vim.fn.cursor(cursor_pos.row, match_pos.col) + vim.fn.cursor({cursor_pos.row, match_pos.col}) vim.cmd(string.format(':normal! v%dl', #match_pos.text - 1)) return end