shithub: vexed

Download patch

ref: 802df8d23433934b946358c215585ed01ef8586e
parent: 15fe0eb1c1c82b9a90fdb924ae04a3c3e2cc23ad
author: phil9 <telephil9@gmail.com>
date: Wed Dec 29 07:13:52 EST 2021

change menu2 items order

--- a/vexed.c
+++ b/vexed.c
@@ -24,8 +24,8 @@
 	Scrollwidth = 12,
 };
 
-enum { Mundo, Mredo, Mgoto, Mdelete, Minsert, Mappend };
-char *menu2str[] = { "undo", "redo", "go...", "delete", "insert", "append", 0 };
+enum { Mundo, Mredo, Minsert, Mappend, Mdelete, Mgoto };
+char *menu2str[] = { "undo", "redo", "insert", "append", "delete", "goto", 0 };
 Menu menu2 = { menu2str };
 
 enum { Msave, Mquit, };
@@ -120,7 +120,7 @@
 	char b[16] = {0}, *endp;
 	int n;
 
-	if(enter("Go to:", b, sizeof b, mctl, kctl, nil) <= 0)
+	if(enter("Address:", b, sizeof b, mctl, kctl, nil) <= 0)
 		return;
 	n = strtol(b, &endp, 0);
 	if(endp == nil || endp == b)