remove useless check

This commit is contained in:
kiyan
2021-06-04 08:28:22 +02:00
parent 58d7c8d178
commit f5931bd96b

View File

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