mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-09-23 01:48:20 +02:00
Enhance "Go To" dialog: update line/position data dynamically
Fix #12284, close #12302
This commit is contained in:
parent
a26599794c
commit
49e5a17377
@ -3873,6 +3873,11 @@ void Notepad_plus::updateStatusBar()
|
||||
_statusBar.setText(strLnColSel, STATUSBAR_CUR_POS);
|
||||
|
||||
_statusBar.setText(_pEditView->execute(SCI_GETOVERTYPE) ? TEXT("OVR") : TEXT("INS"), STATUSBAR_TYPING_MODE);
|
||||
|
||||
if (_goToLineDlg.isCreated() && _goToLineDlg.isVisible())
|
||||
{
|
||||
_goToLineDlg.updateLinesNumbers();
|
||||
}
|
||||
}
|
||||
|
||||
void Notepad_plus::dropFiles(HDROP hdrop)
|
||||
|
@ -47,6 +47,8 @@ public :
|
||||
::SetFocus(::GetDlgItem(_hSelf, ID_GOLINE_EDIT));
|
||||
};
|
||||
|
||||
void updateLinesNumbers() const;
|
||||
|
||||
protected :
|
||||
enum mode {go2line, go2offsset};
|
||||
mode _mode = go2line;
|
||||
@ -55,8 +57,6 @@ protected :
|
||||
private :
|
||||
ScintillaEditView **_ppEditView = nullptr;
|
||||
|
||||
void updateLinesNumbers() const;
|
||||
|
||||
void cleanLineEdit() const {
|
||||
::SetDlgItemText(_hSelf, ID_GOLINE_EDIT, TEXT(""));
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user