]> git.ipfire.org Git - thirdparty/git.git/blobdiff - editor.c
Start the 2.46 cycle
[thirdparty/git.git] / editor.c
index b67b802ddf8493ea25ccbb1fc5c046240bfe917d..d1ba2d7c34fbf4bfa9c9b21c51ada7dd88fcf1e6 100644 (file)
--- a/editor.c
+++ b/editor.c
@@ -104,16 +104,15 @@ static int launch_specified_editor(const char *editor, const char *path,
                sigchain_pop(SIGQUIT);
                if (sig == SIGINT || sig == SIGQUIT)
                        raise(sig);
-               if (ret)
-                       return error("There was a problem with the editor '%s'.",
-                                       editor);
-
                if (print_waiting_for_editor && !is_terminal_dumb())
                        /*
                         * Erase the entire line to avoid wasting the
                         * vertical space.
                         */
                        term_clear_line();
+               if (ret)
+                       return error("there was a problem with the editor '%s'",
+                                       editor);
        }
 
        if (!buffer)