mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 13:54:54 +02:00
[NEW_FEATURE] Add the capacity (behaviour) of keeping line highlighting even when Notepad++ loss its focus.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@143 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
7d950fe5d8
commit
88edc71a7d
@ -4225,7 +4225,13 @@ void Notepad_plus::checkModifiedDocument()
|
|||||||
pScintillaArray[j]->execute(SCI_SETREADONLY, FALSE);
|
pScintillaArray[j]->execute(SCI_SETREADONLY, FALSE);
|
||||||
|
|
||||||
reload(docBuf.getFileName());
|
reload(docBuf.getFileName());
|
||||||
|
/*
|
||||||
|
//if (goToEOL)
|
||||||
|
{
|
||||||
|
int line = _pEditView->getNbLine();
|
||||||
|
_pEditView->gotoLine(line);
|
||||||
|
}
|
||||||
|
*/
|
||||||
if (pScintillaArray[j]->isCurrentBufReadOnly())
|
if (pScintillaArray[j]->isCurrentBufReadOnly())
|
||||||
pScintillaArray[j]->execute(SCI_SETREADONLY, TRUE);
|
pScintillaArray[j]->execute(SCI_SETREADONLY, TRUE);
|
||||||
}
|
}
|
||||||
@ -5917,6 +5923,9 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|||||||
_mainEditView.execute(SCI_SETCARETLINEVISIBLE, svp1._currentLineHilitingShow);
|
_mainEditView.execute(SCI_SETCARETLINEVISIBLE, svp1._currentLineHilitingShow);
|
||||||
_subEditView.execute(SCI_SETCARETLINEVISIBLE, svp2._currentLineHilitingShow);
|
_subEditView.execute(SCI_SETCARETLINEVISIBLE, svp2._currentLineHilitingShow);
|
||||||
|
|
||||||
|
_mainEditView.execute(SCI_SETCARETLINEVISIBLEALWAYS, true);
|
||||||
|
_subEditView.execute(SCI_SETCARETLINEVISIBLEALWAYS, true);
|
||||||
|
|
||||||
_mainEditView.wrap(svp1._doWrap);
|
_mainEditView.wrap(svp1._doWrap);
|
||||||
_subEditView.wrap(svp2._doWrap);
|
_subEditView.wrap(svp2._doWrap);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user