From ae1b141ccb4d3efe25ece1ff35239d0b5414de34 Mon Sep 17 00:00:00 2001 From: Michael Dvorkin Date: Sat, 5 Oct 2013 13:32:39 -0700 Subject: [PATCH] Pressing 'q' quits the program --- cmd/mop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mop.go b/cmd/mop.go index 6b21665..50e55eb 100644 --- a/cmd/mop.go +++ b/cmd/mop.go @@ -54,7 +54,7 @@ loop: switch event.Type { case termbox.EventKey: if lineEditor == nil && columnEditor == nil && !showingHelp { - if event.Key == termbox.KeyEsc { + if event.Key == termbox.KeyEsc || event.Ch == 'q' { break loop } else if event.Ch == '+' || event.Ch == '-' { lineEditor = new(mop.LineEditor).Initialize(screen, quotes)