ecomba / vim-ruby-refactoring

Refactoring tool for Ruby in vim!
520 stars 52 forks source link

Reproducible bug in ExtractConstant #12

Closed nrocy closed 14 years ago

nrocy commented 14 years ago

Steps to reproduce:

http://gist.github.com/646146

ecomba commented 14 years ago

The problem here seems to be that the ExtractConstant function finds "empty_array.class" in line 8 and thinks that that is the name of the class!

Well spotted!

ecomba commented 14 years ago

Modified the finder function (exec "?\<class\|module\>") to find at the beginning of the line for the moment (exec "?^\<class\|module\>").

Cheers!