ecomba / vim-ruby-refactoring

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

AddParameter from anywhere in a method #4

Closed mrmargolis closed 14 years ago

mrmargolis commented 14 years ago

I have modified AddParameter to allow you to add parameters to the current method from any line inside of the method. Without this patch your cursor must be on the first line of the method. The user's previous cursor position is restored after the parameter is added. Not a huge change, but it feels more natural to me if AddParameter behaves in this way.

ecomba commented 14 years ago

Works sweet! Thanks a lot!