Skip to content

Commit

Permalink
Bound cursor position after terminal resize (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelim-work authored Jun 8, 2023
1 parent 027538e commit 07cf7dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 07cf7dd

Please sign in to comment.