diff options
author | Kyle Meyer <kyle@kyleam.com> | 2017-03-24 23:10:50 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2017-03-24 23:10:50 -0400 |
commit | 6144bee7acfc0c5d6aa68a5a13bbbd19d0f841d9 (patch) | |
tree | 3d38a38173f0af01bf71b84b0a21cf7fb1239801 | |
parent | 871aaf250b54f22ff26755e134c738d7682fe9ae (diff) | |
download | emacs.d-6144bee7acfc0c5d6aa68a5a13bbbd19d0f841d9.tar.gz |
magit-copy-region-hunk: Remove unnecessary variable
-rw-r--r-- | lisp/km-magit.el | 8 |
1 files changed, 4 insertions, 4 deletions
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'. |