[BUG_FIXED] Fix selectAll-copy-paste on the same document crash bug while document map has been activated.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@893 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2012-04-13 12:44:33 +00:00
parent 8c3f729f3d
commit 21b729be97
2 changed files with 4 additions and 2 deletions

View File

@ -128,7 +128,8 @@ void DocTabView::bufferUpdated(Buffer * buffer, int mask) {
::SendMessage(_hSelf, TCM_SETITEM, index, reinterpret_cast<LPARAM>(&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) {

View File

@ -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();