Skip to content

Commit

Permalink
(Mac) Change TryProcess(keyInput) to use VimBuffer.CanProcess
Browse files Browse the repository at this point in the history
I think the previous use of CanProcessAsCommand was to workaround the fact
that I couldn't previously prevent keys from being handled in VSMac 8.3.

This (hack) meant that VSVim wasn't handling many Insert mode keypresses which
meant that Insert mode key remaps and Insert mode macro recordings weren't
working.

Fixes VsVim#2807
Fixes VsVim#2820
  • Loading branch information
nosami committed May 22, 2020
1 parent c01cdc5 commit 4d80311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/VimMac/VimKeyProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public override void KeyDown(KeyEventArgs e)
/// </summary>
private bool TryProcess(KeyInput keyInput)
{
return VimBuffer.CanProcessAsCommand(keyInput) && VimBuffer.Process(keyInput).IsAnyHandled;
return VimBuffer.CanProcess(keyInput) && VimBuffer.Process(keyInput).IsAnyHandled;
}

private bool KeyEventIsDeadChar(KeyEventArgs e)
Expand Down

0 comments on commit 4d80311

Please sign in to comment.