Commit Diff


commit - dc424a06a9c1f0f664cee320cc1b34752f33ec97
commit + a61a44146db63a72f7bf98b08e5d16b18ab209da
blob - cf034841cbaef30f1aa862ce4fcd6c9a1dbf8f37
blob + 71b71a09c2f121a9962882e618c136f256b2105a
--- got/got.c
+++ got/got.c
@@ -4651,6 +4651,8 @@ histedit_edit_list_retry(struct got_histedit_list *his
 		printf("%s: %s\n(c)ontinue editing, (r)estart editing, "
 		    "or (a)bort: ", getprogname(), prev_err->msg);
 		resp = getchar();
+		if (resp == '\n')
+			resp = getchar();
 		if (resp == 'c') {
 			histedit_free_list(histedit_cmds);
 			err = histedit_run_editor(histedit_cmds, path, commits,