fix: put resize before preview ends

This commit is contained in:
kiyan
2021-04-19 23:59:37 +02:00
parent f275d3faae
commit c995d65b7d
2 changed files with 4 additions and 4 deletions

View File

@@ -250,6 +250,8 @@ function M.open_file(mode, filename)
ecmd()
end
view.resize()
if mode == 'preview' then
if not found then M.set_target_win() end
view.focus()
@@ -264,8 +266,6 @@ function M.open_file(mode, filename)
view.close()
end
view.resize()
renderer.draw(M.Tree, true)
end