Re: [dev] [vis][PATCH] Implement 'o' in visual mode: go to other end of selection.

2015-03-24 Thread Marc André Tanner
On Tue, Mar 24, 2015 at 04:36:14PM -0300, Marcel Rodrigues wrote: > Thanks for the helpful reply! > > I have reworked the patch (see attachment) based on your input. Thanks, applied. -- Marc André Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0

Re: [dev] [vis][PATCH] Implement 'o' in visual mode: go to other end of selection.

2015-03-24 Thread Marcel Rodrigues
Thanks for the helpful reply! I have reworked the patch (see attachment) based on your input. This one uses text_char_prev() and is an independent function since this is a specific operation that don't need repeat/count and probably shouldn't be added to jumplist. Marcel 2015-03-24 14:54 GMT-

Re: [dev] [vis][PATCH] Implement 'o' in visual mode: go to other end of selection.

2015-03-24 Thread Marc André Tanner
On Tue, Mar 24, 2015 at 12:22:14PM -0300, Marcel Rodrigues wrote: > Hello, > > This feature makes it easier to extend the selection in both directions. > The behavior is the same as in vim: in visual mode, the 'o' key toggles the > cursor position between the two ends (handles) of the selection ra

[dev] [vis][PATCH] Implement 'o' in visual mode: go to other end of selection.

2015-03-24 Thread Marcel Rodrigues
Hello, This feature makes it easier to extend the selection in both directions. The behavior is the same as in vim: in visual mode, the 'o' key toggles the cursor position between the two ends (handles) of the selection range. The attached patch seems to work as expected but I'm not sure it's the