| 150 | } |
| 151 | |
| 152 | void SpellChecker::refresh_underline_style() { |
| 153 | auto view_count = m_editor.get_view_count(); |
| 154 | for (int view_index = 0; view_index < view_count; ++view_index) { |
| 155 | TARGET_VIEW_BLOCK(m_editor, view_index); |
| 156 | m_editor.set_indicator_style(spell_check_indicator_id, m_settings.data.underline_style); |
| 157 | m_editor.set_indicator_foreground(spell_check_indicator_id, m_settings.data.underline_color); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | void SpellChecker::on_settings_changed() { |
| 162 | refresh_underline_style(); |
nothing calls this directly
no test coverage detected