diff options
author | Kyle Meyer <kyle@kyleam.com> | 2017-03-23 21:44:00 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2017-03-23 21:44:00 -0400 |
commit | 871aaf250b54f22ff26755e134c738d7682fe9ae (patch) | |
tree | fa92f5d436525b17dc924184dd04bd76d073c822 /lisp | |
parent | 74cbe6e5d121c8b1347cce75a8cccf07da147455 (diff) | |
download | emacs.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.el | 7 |
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) |