From 6144bee7acfc0c5d6aa68a5a13bbbd19d0f841d9 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 24 Mar 2017 23:10:50 -0400 Subject: magit-copy-region-hunk: Remove unnecessary variable --- lisp/km-magit.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lisp/km-magit.el') diff --git a/lisp/km-magit.el b/lisp/km-magit.el index 75549ee..4ae89e4 100644 --- a/lisp/km-magit.el +++ b/lisp/km-magit.el @@ -477,10 +477,10 @@ COMMIT." (defun km/magit-copy-hunk (&optional _) (magit-section-when hunk - (let ((start (save-excursion (goto-char (magit-section-start it)) - (1+ (point-at-eol))))) - (kill-new (buffer-substring-no-properties - start (magit-section-end it)))))) + (kill-new (buffer-substring-no-properties + (save-excursion (goto-char (magit-section-start it)) + (1+ (point-at-eol))) + (magit-section-end it))))) (defun km/magit-copy-as-kill () "Try `km/magit-copy-functions' before calling `magit-copy-section-value'. -- cgit v1.2.3