When copying the current line discard its newline (fixes #347)
This commit is contained in:
parent
e12d5fbf51
commit
d4ba498d18
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ Will only occur if prelude-whitespace is also enabled."
|
||||||
(if mark-active (list (region-beginning) (region-end))
|
(if mark-active (list (region-beginning) (region-end))
|
||||||
(message "Copied line")
|
(message "Copied line")
|
||||||
(list (line-beginning-position)
|
(list (line-beginning-position)
|
||||||
(line-beginning-position 2)))))
|
(line-end-position)))))
|
||||||
|
|
||||||
(defadvice kill-region (before smart-cut activate compile)
|
(defadvice kill-region (before smart-cut activate compile)
|
||||||
"When called interactively with no active region, kill a single line instead."
|
"When called interactively with no active region, kill a single line instead."
|
||||||
|
|
Loading…
Reference in a new issue