Stop `fixup-whitespace' adding trailing whitespace (Bug#18783)
* lisp/simple.el (fixup-whitespace): Insert no spaces if point is at end of line after deleting horizontal whitespace. Copyright-paperwork-exempt: yes
This commit is contained in:
parent
7a8ae233d1
commit
d1e113ee60
1 changed files with 1 additions and 1 deletions
|
@ -833,7 +833,7 @@ Leave one space or none, according to the context."
|
|||
(interactive "*")
|
||||
(save-excursion
|
||||
(delete-horizontal-space)
|
||||
(if (or (looking-at "^\\|\\s)")
|
||||
(if (or (looking-at "^\\|$\\|\\s)")
|
||||
(save-excursion (forward-char -1)
|
||||
(looking-at "$\\|\\s(\\|\\s'")))
|
||||
nil
|
||||
|
|
Loading…
Add table
Reference in a new issue