diff --git a/PowerEditor/src/ScitillaComponent/DocTabView.cpp b/PowerEditor/src/ScitillaComponent/DocTabView.cpp index 3fb78b630..39b7ca506 100644 --- a/PowerEditor/src/ScitillaComponent/DocTabView.cpp +++ b/PowerEditor/src/ScitillaComponent/DocTabView.cpp @@ -128,7 +128,8 @@ void DocTabView::bufferUpdated(Buffer * buffer, int mask) { ::SendMessage(_hSelf, TCM_SETITEM, index, reinterpret_cast(&tie)); - ::SendMessage(_hParent, WM_SIZE, 0, 0); + // RESIZE shouldn't be needed here + //::SendMessage(_hParent, WM_SIZE, 0, 0); } void DocTabView::setBuffer(int index, BufferID id) { diff --git a/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp b/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp index c83003518..c6301ad26 100644 --- a/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp +++ b/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp @@ -26,6 +26,7 @@ void DocumentMap::reloadMap() { if (_pScintillaEditView && _ppEditView) { + Document currentDoc = (*_ppEditView)->execute(SCI_GETDOCPOINTER); _pScintillaEditView->execute(SCI_SETDOCPOINTER, 0, (LPARAM)currentDoc); @@ -47,8 +48,8 @@ void DocumentMap::reloadMap() scrollMap(); } - } + void DocumentMap::setSyntaxLiliting() { Buffer *buf = _pScintillaEditView->getCurrentBuffer();