Bound cursor position after terminal resize (#1290)
This commit is contained in:
1 parent
027538eabf
commit
07cf7dd1bd
1 file changed
+3
@@ -1742,6 +1742,9 @@ func (e *callExpr) eval(app *app, args []string) {
|
|||||||
app.nav.height = app.ui.wins[0].h
|
app.nav.height = app.ui.wins[0].h
|
||||||
app.nav.regCache = make(map[string]*reg)
|
app.nav.regCache = make(map[string]*reg)
|
||||||
}
|
}
|
||||||
|
for _, dir := range app.nav.dirs {
|
||||||
|
dir.boundPos(app.nav.height)
|
||||||
|
}
|
||||||
app.ui.loadFile(app, true)
|
app.ui.loadFile(app, true)
|
||||||
case "load":
|
case "load":
|
||||||
if !app.nav.init {
|
if !app.nav.init {
|
||||||
|
|||||||
Reference in new issue
Block a user