aboutsummaryrefslogtreecommitdiffstats
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index c86c65c3e7..1b16c68366 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -601,7 +601,8 @@ The variable ruby-indent-level controls the amount of indentation.
(goto-char pnt)
)
((looking-at "[])}]")
- (if (ruby-deep-indent-paren-p (matching-paren (char-after)))
+ (if (ruby-deep-indent-paren-p (matching-paren (char-after))
+ (save-excursion (ruby-backward-sexp) (point)))
(setq depth (cdr (car pcol)) pcol (cdr pcol))
(setq depth (1- depth)))
(setq nest (cdr nest))