Skip to content

Fix: Remove sticky styles out of Spelunker management (First aid)#76

Open
KSR-Yasuda wants to merge 1 commit into
kamykn:masterfrom
KSR-Yasuda:bugfix/RemoveStickyStyles
Open

Fix: Remove sticky styles out of Spelunker management (First aid)#76
KSR-Yasuda wants to merge 1 commit into
kamykn:masterfrom
KSR-Yasuda:bugfix/RemoveStickyStyles

Conversation

@KSR-Yasuda

Copy link
Copy Markdown

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