emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 1f864d6 03/25: Fix revert prompt


From: Dmitry Gutov
Subject: [elpa] master 1f864d6 03/25: Fix revert prompt
Date: Sat, 8 Dec 2018 19:19:35 -0500 (EST)

branch: master
commit 1f864d6bf26d9e17de78cf29ba1455b7cefdc811
Author: Tom Willemse <address@hidden>
Commit: Tom Willemse <address@hidden>

    Fix revert prompt
    
    The ‘yes-or-no-p’ procedure doesn’t pad its prompt argument with a
    space so before this commit the prompt becomes:
    
        Revert current hunk in <file>?(yes or no)
    
    After this commit the prompt gets fixed to:
    
        Revert current hunk in <file>? (yes or no)
---
 diff-hl.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diff-hl.el b/diff-hl.el
index d60fce6..4f8d474 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -418,7 +418,7 @@ in the source file, or the last line of the hunk above it."
                   (recenter 1)))
               (when diff-auto-refine-mode
                 (diff-refine-hunk))
-              (unless (yes-or-no-p (format "Revert current hunk in %s?"
+              (unless (yes-or-no-p (format "Revert current hunk in %s? "
                                            ,(cl-caadr fileset)))
                 (error "Revert canceled"))
               (let ((diff-advance-after-apply-hunk nil))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]