From 628bf408b4a8cd55154961a5cf54316762a58e72 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Wed, 14 Apr 2021 14:49:41 +0300 Subject: [PATCH] invalidate reg cache when height changes in resize cc #610 --- eval.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eval.go b/eval.go index d8f1b6ce..d06b1f8f 100644 --- a/eval.go +++ b/eval.go @@ -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()