invalidate reg cache when height changes in resize

cc #610
This commit is contained in:
Gokcehan committed 2021-04-14 14:49:41 +03:00
1 parent 4601e74d66
commit 628bf408b4
1 file changed
+4 -1
+4 -1
View File
@@ -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()