Commit b006047e8a8af017974aa8fd9759431b3dbaad12

Stefan Sperling 2019-07-25T14:47:48

fix histedit (a)bort prompt handling

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index 3ff7966..7486c8d 100644
--- a/got/got.c
+++ b/got/got.c
@@ -4498,7 +4498,7 @@ histedit_edit_list_retry(struct got_histedit_list *histedit_cmds,
 	const struct got_error *err = NULL;
 	int resp = ' ';
 
-	while (resp != 'c' && resp != 'r' && resp != 'q') {
+	while (resp != 'c' && resp != 'r' && resp != 'a') {
 		printf("%s: %s\n(c)ontinue editing, (r)estart editing, "
 		    "or (a)bort: ", getprogname(), errmsg);
 		resp = getchar();