From 7a06ebdfce5b597b918cea0599db65ac30b5afea Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 18 Sep 2006 18:02:36 +0200 Subject: [PATCH] Always clear the status window after prompting --- tig.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.11.0