From 32bc46ee8b21f88f87d97b976ae6674595b311b5 Mon Sep 17 00:00:00 2001 From: gamoutatsumi <47162587+gamoutatsumi@users.noreply.github.com> Date: Tue, 4 Jan 2022 14:12:58 +0900 Subject: [PATCH] Fix broken argument of nvim_win_get_cursor --- lua/nvim-ts-autotag/internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-ts-autotag/internal.lua b/lua/nvim-ts-autotag/internal.lua index 420ea70..c9dae9e 100644 --- a/lua/nvim-ts-autotag/internal.lua +++ b/lua/nvim-ts-autotag/internal.lua @@ -389,7 +389,7 @@ local function rename_end_tag() end local function validate_rename() - local cursor = vim.api.nvim_win_get_cursor('.') + local cursor = vim.api.nvim_win_get_cursor(0) local line = vim.fn.getline(cursor[1]) local char = line:sub(cursor[2] + 1, cursor[2] + 1) -- only rename when last character is a word