diff --git a/eval.go b/eval.go index fccfdd6..ccf3152 100644 --- a/eval.go +++ b/eval.go @@ -39,7 +39,7 @@ func (e *SetExpr) eval(app *App, args []string) { log.Print(msg) return } - max := app.ui.wins[0].h/2 + max := app.ui.wins[0].h / 2 if n > max { n = max } diff --git a/nav.go b/nav.go index e9dab33..d8f6df8 100644 --- a/nav.go +++ b/nav.go @@ -263,7 +263,7 @@ func (nav *Nav) down() { // use a smaller value when the height is even and scrolloff is maxed // in order to stay at the same row as much as possible while up/down - edge = min(edge, nav.height / 2 + nav.height % 2 - 1) + edge = min(edge, nav.height/2+nav.height%2-1) dir.pos = min(dir.pos, nav.height-edge-1) dir.pos = min(dir.pos, maxind)