X-Git-Url: https://git.distorted.org.uk/~mdw/tig/blobdiff_plain/3621d94edb435e4a3c66da7ff192f01bf811865b..4f3855b3198a48f94cadd0b7bff78f6daa80d611:/tig.c diff --git a/tig.c b/tig.c index 471fa4d..f5f536c 100644 --- a/tig.c +++ b/tig.c @@ -3269,12 +3269,12 @@ read_prompt(const char *prompt) } } - if (status == CANCEL) { - /* Clear the status window */ - status_empty = FALSE; - report(""); + /* Clear the status window */ + status_empty = FALSE; + report(""); + + if (status == CANCEL) return NULL; - } buf[pos++] = 0;