1
0
Fork 0
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:
nobu 2011-03-08 14:12:48 +00:00
parent 6b0dc7fd81
commit 9652eae6e7

View file

@ -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))