public
Description: TextMate bundle - Amplified Mate Productivity
Homepage: http://code.leadmediapartners.com/tools/rubyamp
Clone URL: git://github.com/timcharper/rubyamp.git
Search Repo:
bugfix - auto-expanding selection when the cursor is at the very first 
column no longer yields a double
timcharper (author)
Fri Jul 11 13:20:39 -0700 2008
commit  395c9b2a81f2aaa10cbf3d81927504cb062e7a77
tree    7b7e4f3597a9c0faf2fca9a3438f266a430c81bd
parent  9776aa64ebb3e6cef8319c24cfe01955afe92580
...
81
82
83
84
 
85
86
87
...
81
82
83
 
84
85
86
87
0
@@ -81,7 +81,7 @@ def tm_expanded_selection(options = {})
0
     end
0
 
0
   last_part = line[ (col_number - 1)..-1]
0
- first_part = line[ 0..col_number - 2]
0
+ first_part = col_number == 1 ? "" : line[ 0..col_number - 2]
0
 
0
   last_part.gsub!(/^(#{options[:forward]}){0,1}.*$/i) { $1 }
0
 

Comments

    No one has commented yet.