Closed inkarkat closed 10 years ago
I'll have to think about this one a bit more. I like the use of gv
, but I'm not totally sold on leaving 'selection'
as is.
Thanks for merging my other patches so quickly!
I don't understand your concerns; for a 'selection'
value of inclusive
, nothing changes, and for exclusive
, the former behavior is wrong (it swaps one additional character). I do the same in my plugins, e.g. here.
Ah, I hadn't noticed that you kept it around for Normal mode. That puts my mind at ease.
Thanks!
With this, the
'>
mark points to after the end of the selection.'selection'
value when the plugin is triggered from visual mode, so that we can grab the original selection.gv
can be used instead of"
<" . a:type . ">"
to restore the original selection. This also deals with blockwise-to-end in all cases.