From 88edc71a7d6ac708a4fe43228e554bf42e49c9cb Mon Sep 17 00:00:00 2001 From: donho Date: Fri, 7 Mar 2008 23:43:28 +0000 Subject: [PATCH] [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 --- PowerEditor/src/Notepad_plus.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 59670e39..742f3f98 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -4225,7 +4225,13 @@ void Notepad_plus::checkModifiedDocument() pScintillaArray[j]->execute(SCI_SETREADONLY, FALSE); reload(docBuf.getFileName()); - +/* + //if (goToEOL) + { + int line = _pEditView->getNbLine(); + _pEditView->gotoLine(line); + } +*/ if (pScintillaArray[j]->isCurrentBufReadOnly()) pScintillaArray[j]->execute(SCI_SETREADONLY, TRUE); } @@ -5916,6 +5922,9 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa _mainEditView.execute(SCI_SETCARETLINEVISIBLE, svp1._currentLineHilitingShow); _subEditView.execute(SCI_SETCARETLINEVISIBLE, svp2._currentLineHilitingShow); + + _mainEditView.execute(SCI_SETCARETLINEVISIBLEALWAYS, true); + _subEditView.execute(SCI_SETCARETLINEVISIBLEALWAYS, true); _mainEditView.wrap(svp1._doWrap); _subEditView.wrap(svp2._doWrap);