MCPcopy Create free account
hub / github.com/ConEmu/ConEmu / GetEditorModifiedState

Method GetEditorModifiedState

src/ConEmuPlugin/ConEmuPluginA.cpp:293–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293DWORD CPluginAnsi::GetEditorModifiedState()
294{
295 EditorInfo ei;
296 InfoA->EditorControl(ECTL_GETINFO, &ei);
297#ifdef SHOW_DEBUG_EVENTS
298 char szDbg[255];
299 wsprintfA(szDbg, "Editor:State=%i\n", ei.CurState);
300 OutputDebugStringA(szDbg);
301#endif
302 // Если он сохранен, то уже НЕ модифицирован
303 DWORD currentModifiedState = ((ei.CurState & (ECSTATE_MODIFIED|ECSTATE_SAVED)) == ECSTATE_MODIFIED) ? 1 : 0;
304 return currentModifiedState;
305}
306
307extern MSection *csTabs;
308

Callers 1

OnMainThreadActivatedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected