X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=editor.c;h=f079abbf1102686fdb8e64258f456877f976dd03;hp=71547674ab4e885bd06560a547e78fddb0849158;hb=5b7594abdcdcfb98e7db6f485921b0562477170d;hpb=43f40de9409111a86d5a8d5c9d3f4b9415a05f8f diff --git a/editor.c b/editor.c index 71547674ab..f079abbf11 100644 --- a/editor.c +++ b/editor.c @@ -96,10 +96,10 @@ static int launch_specified_editor(const char *editor, const char *path, if (print_waiting_for_editor && !is_terminal_dumb()) /* - * Go back to the beginning and erase the entire line to - * avoid wasting the vertical space. + * Erase the entire line to avoid wasting the + * vertical space. */ - fputs("\r\033[K", stderr); + term_clear_line(); } if (!buffer)