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.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index f538714f44..8d9df41a4a 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -1085,8 +1085,8 @@ balanced expression is found."
(setq beg (point)))))
(if (and beg
(let ((end-match (ruby-here-doc-end-match)))
- (not (re-search-backward end-match beg t))
- (re-search-forward end-match nil t)))
+ (and (not (re-search-backward end-match beg t))
+ (re-search-forward end-match nil t))))
(progn
(set-match-data (list beg (point)))
t)