fix calling winnr function
This commit is contained in:
@@ -335,7 +335,7 @@ function M.parent_node(node, should_close)
|
|||||||
elseif should_close then
|
elseif should_close then
|
||||||
parent.open = false
|
parent.open = false
|
||||||
end
|
end
|
||||||
api.nvim_win_set_cursor(M.Tree.winnr(), {line, 0})
|
api.nvim_win_set_cursor(view.View.winnr, {line, 0})
|
||||||
end
|
end
|
||||||
renderer.draw(M.Tree, true)
|
renderer.draw(M.Tree, true)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user