fix(lib): Refresh tree if it was opened before init. (#399)
This commit is contained in:
@@ -34,6 +34,8 @@ function M.init(with_open, with_reload)
|
|||||||
|
|
||||||
if with_open then
|
if with_open then
|
||||||
M.open()
|
M.open()
|
||||||
|
elseif view.win_open() then
|
||||||
|
M.refresh_tree()
|
||||||
end
|
end
|
||||||
|
|
||||||
if with_reload then
|
if with_reload then
|
||||||
|
|||||||
Reference in New Issue
Block a user