Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Fix #1264 - 'showmatch' causing tab to lose focus #1271

Merged
merged 3 commits into from
Jan 11, 2018

Conversation

bryphe
Copy link
Member

@bryphe bryphe commented Jan 11, 2018

This change addresses the 'showmatch' option. The first attempt at a fix was to just treat the 'showmatch' mode like regular insert mode, but the highlight of the matched character doesn't work correctly in that case.

Note that the change is bigger than strictly required, as I did some timeboxed refactoring to help enable better unit testing of this scenario (need to continue to refine / whittle away at NeovimEditor and the implicit dependencies).

@bryphe
Copy link
Member Author

bryphe commented Jan 11, 2018

Kept the cursor in 'block' mode, and added a small bump like we have for motion. The tab will still show the insert mode highlight in this case. Fixes #1264

@bryphe bryphe changed the title [WIP] Fix #1264 - 'showmatch' causing tab to lose focus Fix #1264 - 'showmatch' causing tab to lose focus Jan 11, 2018
@bryphe bryphe merged commit 9728824 into master Jan 11, 2018
@bryphe bryphe deleted the bryphe/1264/showmatch-focus branch January 11, 2018 19:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant