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

Method notify

src/npp/NppInterface.cpp:331–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329HWND NppInterface::get_editor_hwnd() const { return m_npp_data.npp_handle; }
330
331void 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
346int NppInterface::get_lexer() const {
347 if (m_lexer_cache[m_target_view])

Callers 1

notifyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected