rename redraw to renew

This commit is contained in:
Gokcehan 2016-08-24 12:36:52 +03:00
parent 4bf8b2d76a
commit fb26551693
4 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@
yank (default "y")
delete (default "d")
paste (default "p")
redraw (default "<c-l>")
renew (default "<c-l>")
## Options

View File

@ -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)

View File

@ -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["<c-l>"] = &CallExpr{"redraw", nil}
gOpts.keys["<c-l>"] = &CallExpr{"renew", nil}
gOpts.cmds = make(map[string]Expr)
}

2
ui.go
View File

@ -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