]> git.notmuchmail.org Git - sup/blobdiff - bin/sup
protect getch from ctrl-c's outside of the main event loop
[sup] / bin / sup
diff --git a/bin/sup b/bin/sup
index e72dba5fefaaace93a3706f2904168168bb7dd9a..6a35cfdaa95d6da360c400e47086ccc2868d2b53 100755 (executable)
--- a/bin/sup
+++ b/bin/sup
@@ -210,7 +210,7 @@ begin
   until Redwood::exceptions.nonempty? || $die
     c = begin
       Ncurses.nonblocking_getch
-    rescue Interrupt => e
+    rescue Interrupt
       raise if BufferManager.ask_yes_or_no "Die ungracefully now?"
       BufferManager.draw_screen
       nil