Skip to content

Commit

Permalink
Fix resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-gai committed Jul 23, 2022
1 parent 3f2befb commit cf0095b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func startEventPolling() {
case "<Resize>":
payload := e.Payload.(termui.Resize)
grid.SetRect(0, 0, payload.Width, payload.Height)
termui.Clear()
termui.Render(grid)

// Run a command
Expand Down

0 comments on commit cf0095b

Please sign in to comment.