Fix Find-result window output tab-width incoherent issue

Hard-set tab-width in Find-result window to 4.

Fix #8406, close #8499
This commit is contained in:
Scott Sumner 2020-06-29 20:16:19 -04:00 committed by Don HO
parent 7bdb3706f9
commit 53b03cc5c5
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -2353,6 +2353,9 @@ void FindReplaceDlg::findAllIn(InWhat op)
_pFinder->_scintView.execute(SCI_SETCARETWIDTH, 0);
_pFinder->_scintView.showMargin(ScintillaEditView::_SC_MARGE_FOLDER, true);
_pFinder->_scintView.execute(SCI_SETUSETABS, true);
_pFinder->_scintView.execute(SCI_SETTABWIDTH, 4);
// get the width of FindDlg
RECT findRect;
::GetWindowRect(_pFinder->getHSelf(), &findRect);
@ -2455,6 +2458,9 @@ Finder * FindReplaceDlg::createFinder()
pFinder->_scintView.execute(SCI_SETCARETWIDTH, 0);
pFinder->_scintView.showMargin(ScintillaEditView::_SC_MARGE_FOLDER, true);
pFinder->_scintView.execute(SCI_SETUSETABS, true);
pFinder->_scintView.execute(SCI_SETTABWIDTH, 4);
// get the width of FindDlg
RECT findRect;
::GetWindowRect(pFinder->getHSelf(), &findRect);