diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-07-09 15:25:45 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-07-09 15:25:45 -0700 |
| commit | 6624e07b36c97e04ba68c8310a70bc69433e187e (patch) | |
| tree | 8581bf4a6011e865729a154f5bb0ded87e05d6ac /editor.c | |
| parent | 88176b7023efc5c147539791610f58d671fe1978 (diff) | |
| parent | 5b12e3123b7b70e3875404a4ffe571ca079364fe (diff) | |
| download | git-6624e07b36c97e04ba68c8310a70bc69433e187e.tar.xz | |
Merge branch 'sg/rebase-progress'
Use "Erase in Line" CSI sequence that is already used in the editor
support to clear cruft in the progress output.
* sg/rebase-progress:
progress: use term_clear_line()
rebase: fix garbled progress display with '-x'
pager: add a helper function to clear the last line in the terminal
t3404: make the 'rebase.missingCommitsCheck=ignore' test more focused
t3404: modernize here doc style
Diffstat (limited to 'editor.c')
| -rw-r--r-- | editor.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |
