From 5f877e84316496556b05287e298f3d3924fc4f00 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 16 Oct 2001 03:27:23 +0000 Subject: * string.c (rb_str_index): wrong increment for non alphanumeric string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- misc/ruby-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 2f53e36840..a665685523 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -137,7 +137,7 @@ (ruby-mark-defun) (save-restriction (narrow-to-region (region-beginning) (region-end)) - (while (re-search-forward "^\\s *def\\s *\\([^(\n ]+\\)" nil t) + (while (re-search-forward "^\\s *def\\s *\\([^(\n ]+\\)" nil 'move) (setq method-begin (match-beginning 1)) (setq method-name (buffer-substring method-begin (match-end 1))) (push (cons (concat class-name "#" method-name) (match-beginning 0)) index-alist)))) -- cgit v1.2.3