commit 6c1844f6c7853b50d214090d982e46b676e1e53e from: Stefan Sperling date: Thu Jul 25 12:46:27 2019 UTC fix histedit syntax error detection commit - 3e3a69f1a29c6322b5464dca5023d8766661d7bf commit + 6c1844f6c7853b50d214090d982e46b676e1e53e blob - f267e721b6b581f74d68a80a860a0b837ada803a blob + 3ff7966671a23d56ded6a78dd6a09563ef0e19fe --- got/got.c +++ got/got.c @@ -4293,7 +4293,7 @@ histedit_parse_list(struct got_histedit_list *histedit break; } } - if (cmd == NULL) { + if (i == nitems(got_histedit_cmds)) { err = histedit_syntax_error(lineno); break; }