From 871aaf250b54f22ff26755e134c738d7682fe9ae Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 23 Mar 2017 21:44:00 -0400 Subject: 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. --- lisp/km-magit.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lisp/km-magit.el') 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) -- cgit v1.2.3