diff --git a/doc/reference.md b/doc/reference.md index c14cb1a..19adefe 100644 --- a/doc/reference.md +++ b/doc/reference.md @@ -19,7 +19,7 @@ yank (default "y") delete (default "d") paste (default "p") - redraw (default "") + renew (default "") ## Options diff --git a/eval.go b/eval.go index dfb7eb9..fd332bb 100644 --- a/eval.go +++ b/eval.go @@ -270,7 +270,7 @@ func (e *CallExpr) eval(app *App, args []string) { app.nav.renew(app.nav.height) app.nav.save(false) saveFiles(nil, false) - case "redraw": + case "renew": app.ui.sync() app.ui.renew() app.nav.renew(app.ui.wins[0].h) diff --git a/opts.go b/opts.go index b2c2d5f..a5b3743 100644 --- a/opts.go +++ b/opts.go @@ -50,7 +50,7 @@ func init() { gOpts.keys["y"] = &CallExpr{"yank", nil} gOpts.keys["d"] = &CallExpr{"delete", nil} gOpts.keys["p"] = &CallExpr{"paste", nil} - gOpts.keys[""] = &CallExpr{"redraw", nil} + gOpts.keys[""] = &CallExpr{"renew", nil} gOpts.cmds = make(map[string]Expr) } diff --git a/ui.go b/ui.go index 0d672df..027e7ee 100644 --- a/ui.go +++ b/ui.go @@ -347,7 +347,7 @@ func findBinds(keys map[string]Expr, prefix string) (binds map[string]Expr, ok b } func (ui *UI) getExpr(nav *Nav) Expr { - r := &CallExpr{"redraw", nil} + r := &CallExpr{"renew", nil} var acc []rune