summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-15 15:14:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-15 15:14:15 +0000
commit4cec316bbc464c936639d198b73b1588f036c3bf (patch)
treef1018f117b0d00ac67d9c5e206a3ff88a61627f5 /misc
parentcd74de7314503ad640f18916c88d57eb9f2d0188 (diff)
* misc/ruby-mode.el (ruby-special-char-p): should test at the
point if no argument. fixed by Michael Scholz <scholz-micha@gmx.de>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index ebb47c9..3b03e0f 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -282,7 +282,7 @@ The variable ruby-indent-level controls the amount of indentation.
(move-to-column (+ x shift))))))
(defun ruby-special-char-p (&optional pnt)
- (let ((c (char-before pnt)))
+ (let ((c (char-before (or pnt (point)))))
(cond ((or (eq c ??) (eq c ?$)))
((eq c ?\\)
(eq (char-before (1- (or pnt (point)))) ??)))))