add builtin 'draw' command to update efficiently

This commit is contained in:
Gokcehan 2018-04-12 21:48:32 +03:00
parent 9d14888ba2
commit 4d3437a198
4 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,7 @@ var (
"delete",
"put",
"clear",
"draw",
"redraw",
"reload",
"read",

1
doc.go
View File

@ -44,6 +44,7 @@ The following commands are provided by lf with default keybindings:
The following commands are provided by lf without default keybindings:
draw draw the ui
sync synchronizes yanked/deleted files with server
echo prints its arguments to the message line
cd changes working directory to its argument

View File

@ -48,6 +48,7 @@ The following commands are provided by lf with default keybindings:
The following commands are provided by lf without default keybindings:
draw draw the ui
sync synchronizes yanked/deleted files with server
echo prints its arguments to the message line
cd changes working directory to its argument

View File

@ -339,6 +339,7 @@ func (e *callExpr) eval(app *app, args []string) {
if err := sendRemote("send sync"); err != nil {
app.ui.printf("clear: %s", err)
}
case "draw":
case "redraw":
app.ui.sync()
app.ui.renew()