shithub: orca

Download patch

ref: 37d24eaeea5017212d9fcad84619089603f6b64f
parent: 571642871a97fae24b21fbb268f03cc1778ed6c0
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Feb 15 12:19:51 EST 2020

plan9: move exit to the menu (C-q is C-left somehow)

--- a/plan9.c
+++ b/plan9.c
@@ -39,6 +39,7 @@
 	Menu3save,
 	Menu3dotstyle,
 	Menu3rulerstyle,
+	Menu3exit,
 	Nummenu3,
 
 	Dback = 0,
@@ -136,6 +137,7 @@
 static char *menu3i[Nummenu3+1] = {
 	[Menu3load] = "load",
 	[Menu3save] = "save",
+	[Menu3exit] = "exit",
 };
 
 static Menu menu3 = {
@@ -729,6 +731,8 @@
 					dotstyle = ++dotstyle % Numstyles;
 				} else if (n == Menu3rulerstyle) {
 					rulerstyle = ++rulerstyle % Numstyles;
+				} else if (n == Menu3exit) {
+					goto end;
 				}
 			}
 			break;
@@ -810,8 +814,6 @@
 			case Kpgdown:
 				cury = field.height-1;
 				break;
-			case 0x11: /* C-q */
-				goto end;
 			case 0x12: /* C-r */
 				tick = -1;
 				forward = 1;