summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-03-23 21:44:00 -0400
committerKyle Meyer <kyle@kyleam.com>2017-03-23 21:44:00 -0400
commit871aaf250b54f22ff26755e134c738d7682fe9ae (patch)
treefa92f5d436525b17dc924184dd04bd76d073c822 /lisp
parent74cbe6e5d121c8b1347cce75a8cccf07da147455 (diff)
downloademacs.d-871aaf250b54f22ff26755e134c738d7682fe9ae.tar.gz
magit-copy-commit-message: Update for unindented format
Quite a while ago Magit stopped displaying commit messages with the leading spaces, so there is no need anymore to strip them out.
Diffstat (limited to 'lisp')
-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)