Skip to content

Avoid duplication of match_words in some cases.#129

Merged
HerringtonDarkholme merged 1 commit intoHerringtonDarkholme:masterfrom
studyroz:master
Sep 5, 2019
Merged

Avoid duplication of match_words in some cases.#129
HerringtonDarkholme merged 1 commit intoHerringtonDarkholme:masterfrom
studyroz:master

Conversation

@studyroz
Copy link
Copy Markdown
Contributor

@studyroz studyroz commented Sep 3, 2019

In some cases the filetype is set multiple times and the code that sets b:match_words executes for each instance. This commit add a tsx_match_words existence precondition check, and fix the '%' command issue discussed here neovim/neovim#9187 and chrisbra/matchit#11.

For more information, please checkout the original PR to vim-jsx by @ivangeorgiew . mxw/vim-jsx#177

@HerringtonDarkholme
Copy link
Copy Markdown
Owner

Thanks! I will give it a look!

@HerringtonDarkholme HerringtonDarkholme merged commit d9af5fc into HerringtonDarkholme:master Sep 5, 2019
@HerringtonDarkholme
Copy link
Copy Markdown
Owner

Thanks!

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.

2 participants