branch: externals/diff-hl
commit 96620839430c1205cbb8c92dd54973397f70f9d2
Author: Dmitry Gutov <dmi...@gutov.dev>
Commit: Dmitry Gutov <dmi...@gutov.dev>

    diff-hl-stage-dwim: Fix to default to diff-hl-stage-current-hunk
    
    Unless there is active region or command prefix.
---
 diff-hl.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diff-hl.el b/diff-hl.el
index af7cb1ce48..29dfe31923 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -807,7 +807,7 @@ Only supported with Git."
 (defun diff-hl-stage-dwim (&optional with-edit)
   "Stage the current hunk or choose the hunks to stage.
 When called with the prefix argument, invokes `diff-hl-stage-some'."
-  (interactive "p")
+  (interactive "P")
   (if (or with-edit (region-active-p))
       (call-interactively #'diff-hl-stage-some)
     (call-interactively #'diff-hl-stage-current-hunk)))

Reply via email to