Skip to content

Commit

Permalink
invalidate reg cache when height changes in resize
Browse files Browse the repository at this point in the history
cc #610
  • Loading branch information
gokcehan committed Apr 14, 2021
1 parent 4601e74 commit 628bf40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,10 @@ func (e *callExpr) eval(app *app, args []string) {
case "redraw":
app.ui.renew()
app.ui.screen.Sync()
app.nav.height = app.ui.wins[0].h
if app.nav.height != app.ui.wins[0].h {
app.nav.height = app.ui.wins[0].h
app.nav.regCache = make(map[string]*reg)
}
app.ui.loadFile(app.nav, true)
case "load":
app.nav.renew()
Expand Down

0 comments on commit 628bf40

Please sign in to comment.