summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Czapliński <czapkofan@gmail.com>2018-10-26 01:28:58 +0200
committerMateusz Czapliński <czapkofan@gmail.com>2018-10-26 01:28:58 +0200
commit0a2293dc0bf3012dc0566e9e8c58986f7372d95c (patch)
tree53f4eaa306ec71af00f1720092f3730847007435
parent295bee2d4d63f60c4e46c1e563ca647d0ca62e2e (diff)
fix restart on Ctrl-Qv0.2.1
Broken after changing the logic for "Enter to run" feature.
-rw-r--r--up.gifbin670722 -> 176182 bytes
-rw-r--r--up.go4
2 files changed, 2 insertions, 2 deletions
diff --git a/up.gif b/up.gif
index 493de39..25df60d 100644
--- a/up.gif
+++ b/up.gif
Binary files differ
diff --git a/up.go b/up.go
index eb3800e..0ebf597 100644
--- a/up.go
+++ b/up.go
@@ -34,7 +34,7 @@ import (
"github.com/spf13/pflag"
)
-const version = "0.2 (2018-10-25)"
+const version = "0.2.1 (2018-10-25)"
// TODO: [#4] in case of error, show it in red (bg?), then below show again initial normal output
// TODO: F1 should display help, and it should be multi-line, and scrolling licensing credits
@@ -181,7 +181,7 @@ func main() {
case key(tcell.KeyCtrlQ),
ctrlKey(tcell.KeyCtrlQ):
stdinCapture.Pause(false)
- lastCommand = ":" // Make sure we restart current command
+ restart = true
case key(tcell.KeyCtrlC),
ctrlKey(tcell.KeyCtrlC),
key(tcell.KeyCtrlD),