summaryrefslogtreecommitdiff
path: root/builtin/diff-files.c
diff options
context:
space:
mode:
authorRubén Justo <rjusto@gmail.com>2024-04-14 09:39:44 +0200
committerJunio C Hamano <gitster@pobox.com>2024-04-15 10:13:32 -0700
commit48e1ca27b1fed9d71779bf93d524b4aed9d66da3 (patch)
tree1dcb255e925d688c97f7d86ceb0b48a52cc13c9a /builtin/diff-files.c
parent3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0 (diff)
launch_editor: waiting message on error
When advice.waitingForEditor configuration is not set to false, we show a hint telling that we are waiting for user's editor to close the file when we launch an editor and wait for it to return control back to us. We give the message on an incomplete line, expecting that we can go back to the beginning of the line and clear the message when the editor returns. However, it is possible that the editor exits with an error status, in which case we show an error message and then return to our caller. In such a case, the error message is given where the terminal cursor happens to be, which is most likely after the "we are waiting for your editor" message on the same line. Clear the line before showing the error. While we're here, make the error message follow our CodingGuideLines. Signed-off-by: Rubén Justo <rjusto@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/diff-files.c')
0 files changed, 0 insertions, 0 deletions