branch: elpa/standard-keys-mode
commit ae7a9f8e32c86fef29e19be3f06af04ea715b296
Author: Aleksei Gusev <aleksei.gu...@gmail.com>
Commit: Aleksei Gusev <aleksei.gu...@gmail.com>

    Include the newline character
    
    When copying or killing the current line the newline character and the
    end should be included.
---
 standard-keys-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/standard-keys-mode.el b/standard-keys-mode.el
index ca83039071a..a09fd1f9f46 100644
--- a/standard-keys-mode.el
+++ b/standard-keys-mode.el
@@ -231,7 +231,7 @@ The buffer major mode is specified in 
`standard-keys-new-buffer-mode'."
   (interactive)
   (let* ((region (use-region-p))
          (beg (if region (region-beginning) (line-beginning-position)))
-         (end (if region (region-end) (line-end-position))))
+         (end (if region (region-end) (line-beginning-position 2))))
     (unless region (pulse-momentary-highlight-region beg end 'region))
     (kill-ring-save beg end)))
 
@@ -240,7 +240,7 @@ The buffer major mode is specified in 
`standard-keys-new-buffer-mode'."
   "Cut the active region, or the current line if no region is active."
   (interactive)
   (kill-region (line-beginning-position)
-               (line-end-position)
+               (line-beginning-position 2)
                (use-region-p)))
 
 

Reply via email to