| 329 | HWND NppInterface::get_editor_hwnd() const { return m_npp_data.npp_handle; } |
| 330 | |
| 331 | void NppInterface::notify(SCNotification *notify_code) { |
| 332 | switch (notify_code->nmhdr.code) { |
| 333 | case NPPN_LANGCHANGED: { |
| 334 | for (auto &val : m_lexer_cache) |
| 335 | val = std::nullopt; |
| 336 | } |
| 337 | break; |
| 338 | case NPPN_BUFFERACTIVATED: { |
| 339 | for (auto &val : m_lexer_cache) |
| 340 | val = std::nullopt; |
| 341 | } |
| 342 | break; |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | int NppInterface::get_lexer() const { |
| 347 | if (m_lexer_cache[m_target_view]) |