Home Download Buy Blog Forum Support

Vintage "0" Fix

Vintage "0" Fix

Postby bengold on Sat Mar 31, 2012 10:48 pm

I'm not sure where the right place to put fixes is, so I'll try here. I had noticed that when doing commands like yank or delete, something like "y20y" would misbehave, and have the cursor simply jump to the beginning of the line. It looks like the issue was in vintage.py:172,

Code: Select all
        elif key == "vi_has_repeat_digit":
            if g_input_state.motion_command: #this line
                v = len(g_input_state.motion_repeat_digits) > 0
            else:
                v = len(g_input_state.prefix_repeat_digits) > 0


Needed to be

Code: Select all
        elif key == "vi_has_repeat_digit":
            if g_input_state.action_command:
                v = len(g_input_state.motion_repeat_digits) > 0
            else:
                v = len(g_input_state.prefix_repeat_digits) > 0
bengold
 
Posts: 15
Joined: Wed Aug 03, 2011 9:49 pm

Re: Vintage "0" Fix

Postby misfo on Mon Apr 02, 2012 1:27 pm

Nice catch!

Do you wanna contribute this on Github? (https://github.com/sublimehq/Vintage) The more contributors the better!
misfo
 
Posts: 4
Joined: Wed Feb 08, 2012 12:44 am

Re: Vintage "0" Fix

Postby bengold on Mon Apr 02, 2012 11:02 pm

Will do! Didn't realize there was a GH for this :)
bengold
 
Posts: 15
Joined: Wed Aug 03, 2011 9:49 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 26 guests