Prevent unfolding from hiding goto line

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@232 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
harrybharry 2008-06-14 15:56:49 +00:00
parent 26287e2f08
commit 673c2f3097

View File

@ -45,12 +45,12 @@ BOOL CALLBACK GoToLineDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lPara
display(false);
cleanLineEdit();
if (_mode == go2line) {
(*_ppEditView)->execute(SCI_GOTOLINE, line-1);
(*_ppEditView)->execute(SCI_ENSUREVISIBLE, line-1);
(*_ppEditView)->execute(SCI_GOTOLINE, line-1);
} else {
int sci_line = (*_ppEditView)->execute(SCI_LINEFROMPOSITION, line);
(*_ppEditView)->execute(SCI_GOTOPOS, line);
(*_ppEditView)->execute(SCI_ENSUREVISIBLE, sci_line);
(*_ppEditView)->execute(SCI_GOTOPOS, line);
}
}
(*_ppEditView)->getFocus();