Skip to content

Commit

Permalink
Don’t spellcheck the preedit if the top priority input method is Japa…
Browse files Browse the repository at this point in the history
…nese or Chinese

Resolves: #624
  • Loading branch information
mike-fabian committed Feb 7, 2025
1 parent 6aaba62 commit 93d3bff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/hunspell_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -2444,6 +2444,7 @@ def _add_color_to_attrs_for_spellcheck(
'''
if (self._typed_compose_sequence
or self._m17n_trans_parts.candidates
or self.get_current_imes()[0][:2] in ('zh', 'ja')
or not self._color_preedit_spellcheck):
return
stripped_text = itb_util.strip_token(text)
Expand Down

0 comments on commit 93d3bff

Please sign in to comment.