Closed rsteube closed 6 months ago
This does fix the crash, but it means that when the available height is 1 all that is visible is the scrollbar, which isn't ideal. Better to show one row of actual content instead. I'm preparing that fix.
I've implemented the fix I described so I'll close this PR. Thanks for the contribution.
Fix
divide by zero
when resizing terminal.Steps to reproduce:
related https://github.com/elves/elvish/issues/1282