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: Remove sticky styles out of Spelunker management (First aid) #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KSR-Yasuda
Copy link

Sometimes spell check styles unexpectedly remains.

Spelunker manages match() styles in b:match_id_dict, though,
somehow there happens to miss some styles unmanaged, probably.

For first aid,
removes the spellcheck match() styles of g:spelunker_spell_bad_group and g:spelunker_complex_or_compound_word_group
on clearing spellcheck matches
(Match groups SpelunkerSpellBad and SpelunkerComplexOrCompoundWord, by default).

As a side effect,
it also removes your custom match() settings, if the match group are them.
Although, generally users uses Spelunker-very-own styles, aren't they?


時々、スペルチェックのスタイルが 意図せず 残ること があります。

Spelunker は match() のスタイルを b:match_id_dict変数 で管理していますが、
なぜか、いくつかのスタイルが 管理されずに 取り残されること があるようです。

応急処置として:
スペルチェックの match()スタイル g:spelunker_spell_bad_groupg:spelunker_complex_or_compound_word_group を、
スペルチェックのマッチ箇所のクリア のタイミングで 削除するようにしました
(デフォルトでは、マッチグループ SpelunkerSpellBadSpelunkerComplexOrCompoundWord).

副作用として:
ユーザが自分で指定した match()設定 についても、group が これらに当てはまる場合は、削除します。
でも 大抵、ユーザは Spelunker専用に スタイルを作って 使うか と思うので、あまり 問題にならないと思っています。

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