changeset 153:23fff8f7b303

xrogue: escaping to a shell should not cause a move to the left. This was due to the classic error of forgetting a break statement.
author John "Elwin" Edwards
date Thu, 28 May 2015 13:51:01 -0400
parents 0c775afe0072
children 4ef27dfe0492
files xrogue/command.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/xrogue/command.c	Thu May 28 11:08:03 2015 -0400
+++ b/xrogue/command.c	Thu May 28 13:51:01 2015 -0400
@@ -189,7 +189,7 @@
                     count--;
 
                 switch (ch) {
-                    case '!' : shell();
+                    case '!' : shell(); break;
                     case KEY_LEFT       : do_move(0, -1);
                     when KEY_DOWN       : do_move(1, 0);
                     when KEY_UP         : do_move(-1, 0);