summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-22 06:46:09 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-22 06:46:09 +0000
commit40bb53ceb1c8eed2a5cd76c497e8208746a8db96 (patch)
tree63ec7460227b34e079e1a6404127bb4480f9153e /misc
parent37b6805c7a863e00be9ff0742261aca8b1e09819 (diff)
* string.c (rb_str_index): wrong increment for non alphanumeric
string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1794 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 7dd4708176..b1efadf818 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))))