Commit Diff


commit - 3b4f9e49aa630459fc21e0e64761672f9bacc594
commit + c314a314380d9f9ab3f35f5e91c4cb8994777885
blob - fa1ec63a612918dd4cdf9b1ff7f8dc04e59840e3
blob + ea348d3d513b14067ea4543bde7bcc6d3d1ee6fb
--- ui.c
+++ ui.c
@@ -936,8 +936,10 @@ dispatch_stdio(int fd, short ev, void *d)
 
 		thiskey.meta = 1;
 		thiskey.key = wgetch(body);
-		if (thiskey.key == ERR)
+		if (thiskey.key == ERR || thiskey.key == 27) {
+			thiskey.meta = 0;
 			thiskey.key = 27;
+		}
 	} else
 		thiskey.meta = 0;