From 07cf7dd1bdb994473f8561c74d56a61797b6ca29 Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Fri, 9 Jun 2023 00:17:32 +1000 Subject: [PATCH] Bound cursor position after terminal resize (#1290) --- eval.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eval.go b/eval.go index 048ee92b..6dff0c70 100644 --- a/eval.go +++ b/eval.go @@ -1742,6 +1742,9 @@ func (e *callExpr) eval(app *app, args []string) { app.nav.height = app.ui.wins[0].h app.nav.regCache = make(map[string]*reg) } + for _, dir := range app.nav.dirs { + dir.boundPos(app.nav.height) + } app.ui.loadFile(app, true) case "load": if !app.nav.init {