Sublime Forum

Vintage "0" Fix

#1

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,

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

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

0 Likes

#2

Nice catch!

Do you wanna contribute this on Github? (github.com/sublimehq/Vintage) The more contributors the better!

0 Likes

#3

Will do! Didn’t realize there was a GH for this :smile:

0 Likes