Fix broken argument of nvim_win_get_cursor

This commit is contained in:
gamoutatsumi 2022-01-04 14:12:58 +09:00 committed by windwp
parent 0ceb4ef342
commit 32bc46ee8b

View File

@ -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