mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* misc/ruby-electric.el: remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6b0dc7fd81
commit
9652eae6e7
1 changed files with 11 additions and 6 deletions
|
|
@ -171,6 +171,11 @@ strings. Note that you must have Font Lock enabled."
|
|||
(newline))
|
||||
(insert "}")))
|
||||
((ruby-electric-string-at-point-p)
|
||||
(if (eq last-command-event ?{)
|
||||
(save-excursion
|
||||
(when (not (char-equal ?\# (preceding-char)))
|
||||
(delete-backward-char)
|
||||
(insert "#"))))
|
||||
(save-excursion
|
||||
(backward-char 1)
|
||||
(when (char-equal ?\# (preceding-char))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue