MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / refresh_underline_style

Method refresh_underline_style

src/core/SpellChecker.cpp:152–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void 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
161void SpellChecker::on_settings_changed() {
162 refresh_underline_style();

Callers

nothing calls this directly

Calls 3

get_view_countMethod · 0.45
set_indicator_styleMethod · 0.45

Tested by

no test coverage detected