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

Method update_word_under_cursor_data

src/ui/ContextMenuHandler.cpp:230–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void ContextMenuHandler::update_word_under_cursor_data() {
231 TextPosition pos, length;
232 m_word_under_cursor_is_correct =
233 m_spell_checker.is_word_under_cursor_correct(pos, length, true);
234 if (!m_word_under_cursor_is_correct) {
235 m_word_under_cursor_pos = pos;
236 m_word_under_cursor_length = length;
237 }
238}
239
240void ContextMenuHandler::precalculate_menu() {
241 std::vector<MenuItem> suggestion_menu_items;

Callers 1

Calls 1

Tested by

no test coverage detected