feat(resize): add ability to grow and shrink the tree when drawing (#1293)

Will adapt the view size based on the longest line.
fixes #865
This commit is contained in:
Kiyan
2022-05-31 09:05:00 +02:00
committed by GitHub
parent 6b26628acf
commit 2002b21be7
5 changed files with 31 additions and 0 deletions

View File

@@ -95,6 +95,8 @@ function M.draw()
diagnostics.update()
end
view.grow_from_content()
log.profile_end(ps, "draw")
end