[NEW] unfold while jumping markers.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@583 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2009-12-04 21:51:39 +00:00
parent b7ae5956f9
commit b908173f7a
1 changed files with 6 additions and 0 deletions

View File

@ -10193,6 +10193,9 @@ bool Notepad_plus::goToPreviousIndicator(int indicID2Search, bool isWrap) const
NppGUI & nppGUI = (NppGUI &)((NppParameters::getInstance())->getNppGUI());
nppGUI._disableSmartHiliteTmp = true;
int currentline = _pEditView->execute(SCI_LINEFROMPOSITION, posEnd);
_pEditView->execute(SCI_ENSUREVISIBLE, currentline); // make sure target line is unfolded
_pEditView->execute(SCI_SETSEL, posEnd, posStart);
_pEditView->execute(SCI_SCROLLCARET);
return true;
@ -10243,6 +10246,9 @@ bool Notepad_plus::goToNextIndicator(int indicID2Search, bool isWrap) const
NppGUI & nppGUI = (NppGUI &)((NppParameters::getInstance())->getNppGUI());
nppGUI._disableSmartHiliteTmp = true;
int currentline = _pEditView->execute(SCI_LINEFROMPOSITION, posEnd);
_pEditView->execute(SCI_ENSUREVISIBLE, currentline); // make sure target line is unfolded
_pEditView->execute(SCI_SETSEL, posStart, posEnd);
_pEditView->execute(SCI_SCROLLCARET);
return true;