Fix block selection cursor position after TAB

Fix #8400, close #8402
This commit is contained in:
Udo Hoffmann 2020-06-11 01:32:22 +02:00 committed by Don HO
parent b9c526dfcb
commit 6602840117
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
2 changed files with 6 additions and 2 deletions

View File

@ -2456,8 +2456,10 @@ void Notepad_plus::addHotSpot(ScintillaEditView* view)
int urlAction = (NppParameters::getInstance()).getNppGUI()._styleURL;
LPARAM indicStyle = (urlAction == 2) ? INDIC_PLAIN : INDIC_HIDDEN;
pView->execute(SCI_INDICSETSTYLE, URL_INDIC, indicStyle);
pView->execute(SCI_INDICSETHOVERSTYLE, URL_INDIC, INDIC_FULLBOX);
LPARAM indicStyleCur = pView->execute(SCI_INDICGETSTYLE, URL_INDIC);
if (indicStyleCur != indicStyle)
pView->execute(SCI_INDICSETSTYLE, URL_INDIC, indicStyle);
int startPos = 0;
int endPos = -1;

View File

@ -329,6 +329,8 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere)
execute(SCI_INDICSETUNDER, SCE_UNIVERSAL_FOUND_STYLE_EXT4, true);
execute(SCI_INDICSETUNDER, SCE_UNIVERSAL_FOUND_STYLE_EXT5, true);
execute(SCI_INDICSETHOVERSTYLE, URL_INDIC, INDIC_FULLBOX);
_codepage = ::GetACP();
::SetWindowLongPtr(_hSelf, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(this));