Skip to content

Commit

Permalink
fix restart on Ctrl-Q
Browse files Browse the repository at this point in the history
Broken after changing the logic for "Enter to run" feature.
  • Loading branch information
akavel committed Oct 25, 2018
1 parent 295bee2 commit 0a2293d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified up.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions up.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 0a2293d

Please sign in to comment.