mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-30 01:04:57 +02:00
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:
parent
26287e2f08
commit
673c2f3097
@ -45,12 +45,12 @@ BOOL CALLBACK GoToLineDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lPara
|
|||||||
display(false);
|
display(false);
|
||||||
cleanLineEdit();
|
cleanLineEdit();
|
||||||
if (_mode == go2line) {
|
if (_mode == go2line) {
|
||||||
(*_ppEditView)->execute(SCI_GOTOLINE, line-1);
|
|
||||||
(*_ppEditView)->execute(SCI_ENSUREVISIBLE, line-1);
|
(*_ppEditView)->execute(SCI_ENSUREVISIBLE, line-1);
|
||||||
|
(*_ppEditView)->execute(SCI_GOTOLINE, line-1);
|
||||||
} else {
|
} else {
|
||||||
int sci_line = (*_ppEditView)->execute(SCI_LINEFROMPOSITION, line);
|
int sci_line = (*_ppEditView)->execute(SCI_LINEFROMPOSITION, line);
|
||||||
(*_ppEditView)->execute(SCI_GOTOPOS, line);
|
|
||||||
(*_ppEditView)->execute(SCI_ENSUREVISIBLE, sci_line);
|
(*_ppEditView)->execute(SCI_ENSUREVISIBLE, sci_line);
|
||||||
|
(*_ppEditView)->execute(SCI_GOTOPOS, line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(*_ppEditView)->getFocus();
|
(*_ppEditView)->getFocus();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user