shithub: puzzles

Download patch

ref: c4198948a8019903b250fec426d973e8f32abacd
parent: 6c71b459a6af362e242ff46bef85471a2973d09f
author: Jonas Kölker <jonaskoelker@yahoo.com>
date: Mon Sep 21 12:26:53 EDT 2015

Fix typo in undo key handling.

Now we can undo with both 'u' and 'U', symmetrically with redoing with
both 'r' and 'R'.

--- a/midend.c
+++ b/midend.c
@@ -600,7 +600,7 @@
 	    midend_new_game(me);
 	    midend_redraw(me);
 	    goto done;		       /* never animate */
-	} else if (button == 'u' || button == 'u' ||
+	} else if (button == 'u' || button == 'U' ||
 		   button == '\x1A' || button == '\x1F') {
 	    midend_stop_anim(me);
 	    type = me->states[me->statepos-1].movetype;