Revert 735e019382 for preventing from regression

pull/1242/head
Don Ho 2015-12-09 19:58:43 +01:00
parent 53809d8ef9
commit 232ccc7d46
2 changed files with 5 additions and 0 deletions

View File

@ -1521,6 +1521,10 @@ void ScintillaEditView::defineDocType(LangType typeDoc)
setSpecialStyle(styleLN); setSpecialStyle(styleLN);
} }
setTabSettings(_pParameter->getLangFromID(typeDoc)); setTabSettings(_pParameter->getLangFromID(typeDoc));
execute(SCI_SETSTYLEBITS, 8); // Always use 8 bit mask in Document class (Document::stylingBitsMask),
// in that way Editor::PositionIsHotspot will return correct hotspot styleID.
// This value has no effect on LexAccessor::mask.
} }
BufferID ScintillaEditView::attachDefaultDoc() BufferID ScintillaEditView::attachDefaultDoc()

View File

@ -156,6 +156,7 @@ void URLCtrl::destroy()
if(_hCursor) if(_hCursor)
::DestroyCursor(_hCursor); ::DestroyCursor(_hCursor);
} }
void URLCtrl::action() void URLCtrl::action()
{ {
if (_cmdID) if (_cmdID)