From 53b03cc5c5e34646b3ba79260c1097bcff62d4e2 Mon Sep 17 00:00:00 2001 From: Scott Sumner <30118311+sasumner@users.noreply.github.com> Date: Mon, 29 Jun 2020 20:16:19 -0400 Subject: [PATCH] Fix Find-result window output tab-width incoherent issue Hard-set tab-width in Find-result window to 4. Fix #8406, close #8499 --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index c66121ff..ddabab87 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -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);