mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2025-01-01 12:49:15 -06:00
Fix broken argument of nvim_win_get_cursor
This commit is contained in:
parent
0ceb4ef342
commit
32bc46ee8b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user