| 228 | } |
| 229 | |
| 230 | void 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 | |
| 240 | void ContextMenuHandler::precalculate_menu() { |
| 241 | std::vector<MenuItem> suggestion_menu_items; |
no test coverage detected