mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* 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
This commit is contained in:
		
							parent
							
								
									37b6805c7a
								
							
						
					
					
						commit
						40bb53ceb1
					
				
					 4 changed files with 9 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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))))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue