diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-07-29 12:38:19 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-07-29 12:38:19 -0700 |
| commit | 3e06e74e4cc221d0b602622a5a8d472cfa3efa2d (patch) | |
| tree | 1d22e6e40d9c6d8daddcf4c1a9e19a46255bfde4 /editor.c | |
| parent | 292a0de9982aff5e4f952214c1b9f762d8a1585a (diff) | |
| parent | 5b12e3123b7b70e3875404a4ffe571ca079364fe (diff) | |
| download | git-3e06e74e4cc221d0b602622a5a8d472cfa3efa2d.tar.gz | |
Merge branch 'sg/rebase-progress' into maint
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) |
