add builtin 'draw' command to update efficiently

This commit is contained in:
Gokcehan committed 2018-04-12 21:48:32 +03:00
1 parent 9d14888ba2
commit 4d3437a198
4 files changed
+4

No files matched your search

+1
View File
@@ -32,6 +32,7 @@ var (
"delete",
"put",
"clear",
"draw",
"redraw",
"reload",
"read",
+1
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
+1
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
+1
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()