remove useless check
This commit is contained in:
@@ -195,9 +195,6 @@ function M.reset_highlight()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function M.place_cursor_on_node()
|
function M.place_cursor_on_node()
|
||||||
-- to avoid crashing on startup
|
|
||||||
if not view.win_open() then return end
|
|
||||||
|
|
||||||
local node = lib.get_node_at_cursor()
|
local node = lib.get_node_at_cursor()
|
||||||
if not node then return end
|
if not node then return end
|
||||||
local line = api.nvim_get_current_line()
|
local line = api.nvim_get_current_line()
|
||||||
|
|||||||
Reference in New Issue
Block a user