When copying the current line discard its newline (fixes #347)

This commit is contained in:
Bozhidar Batsov 2013-07-08 18:34:57 +03:00
parent e12d5fbf51
commit d4ba498d18

View file

@ -195,7 +195,7 @@ Will only occur if prelude-whitespace is also enabled."
(if mark-active (list (region-beginning) (region-end))
(message "Copied line")
(list (line-beginning-position)
(line-beginning-position 2)))))
(line-end-position)))))
(defadvice kill-region (before smart-cut activate compile)
"When called interactively with no active region, kill a single line instead."