diff options
Diffstat (limited to 'lisp')
-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'. |