Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: single-key remappings were being ignored #3424

Merged
merged 1 commit into from
Jan 31, 2019
Merged

fix: single-key remappings were being ignored #3424

merged 1 commit into from
Jan 31, 2019

Conversation

jpoon
Copy link
Member

@jpoon jpoon commented Jan 30, 2019

What this PR does / why we need it:
As we don't clear this.vimState.recordedState.commandList in insert-mode, the remappers would never be called for single-key presses.

This PR updates the logic when calling the remappers and adds a UT for the repro case stated in #3126.

I really hope I don't break other remappings.

Which issue(s) this PR fixes
#3126, #2965

Special notes for your reviewer:

@jpoon jpoon force-pushed the fix_3221 branch 3 times, most recently from 7a77580 to b1199fb Compare January 31, 2019 00:30
@VSCodeVim VSCodeVim deleted a comment from TravisBuddy Jan 31, 2019
@VSCodeVim VSCodeVim deleted a comment from TravisBuddy Jan 31, 2019
@VSCodeVim VSCodeVim deleted a comment from TravisBuddy Jan 31, 2019
@jpoon jpoon force-pushed the fix_3221 branch 3 times, most recently from 1ea076e to 6138f02 Compare January 31, 2019 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant