summaryrefslogtreecommitdiff
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index f1762e6b5d..a52b00893d 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -683,11 +683,9 @@ The variable ruby-indent-level controls the amount of indentation.
(setq end nil))
(goto-char (or end pos))
(skip-chars-backward " \t")
- (and
- (setq state (ruby-parse-region parse-start (point)))
- (nth 0 state)
- (setq begin (cdr (nth 1 state)))
- (goto-char pos)))
+ (setq state (ruby-parse-region parse-start (point)))
+ (setq begin (or (nth 0 state) (cdr (nth 1 state))))
+ (goto-char pos))
(or (bobp) (forward-char -1))
(and
(or (and (looking-at ruby-symbol-re)