From 232ccc7d465ac80b3b6ebea275257eb766efaa6c Mon Sep 17 00:00:00 2001 From: Don Ho Date: Wed, 9 Dec 2015 19:58:43 +0100 Subject: [PATCH] Revert 735e0193822f9f39db6816e0d63e27650753e975 for preventing from regression --- PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp | 4 ++++ PowerEditor/src/WinControls/AboutDlg/URLCtrl.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index 5fa939e64..d3dfa53b2 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -1521,6 +1521,10 @@ void ScintillaEditView::defineDocType(LangType typeDoc) setSpecialStyle(styleLN); } 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() diff --git a/PowerEditor/src/WinControls/AboutDlg/URLCtrl.cpp b/PowerEditor/src/WinControls/AboutDlg/URLCtrl.cpp index 8d53c6167..d7d6e5049 100644 --- a/PowerEditor/src/WinControls/AboutDlg/URLCtrl.cpp +++ b/PowerEditor/src/WinControls/AboutDlg/URLCtrl.cpp @@ -156,6 +156,7 @@ void URLCtrl::destroy() if(_hCursor) ::DestroyCursor(_hCursor); } + void URLCtrl::action() { if (_cmdID)