summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/km-magit.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 3c2591d..75549ee 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -461,10 +461,9 @@ COMMIT."
(defun km/magit-copy-commit-message (&optional _)
(magit-section-when message
- (kill-new (replace-regexp-in-string
- "^ " ""
- (buffer-substring-no-properties (magit-section-start it)
- (magit-section-end it))))))
+ (kill-new
+ (buffer-substring-no-properties (magit-section-start it)
+ (magit-section-end it)))))
(defun km/magit-copy-region-hunk (&optional no-column)
(when (magit-section-internal-region-p)