Override "current line indicator" style in "Search results"

Fix #11596, close #11598
pull/11625/head
Shridhar Kumar 2022-04-27 10:58:03 -04:00 committed by Don Ho
parent 3f322faf62
commit 664d46084b
1 changed files with 3 additions and 5 deletions

View File

@ -2680,8 +2680,6 @@ void FindReplaceDlg::findAllIn(InWhat op)
_pFinder->_scintView.execute(SCI_SETCODEPAGE, SC_CP_UTF8);
_pFinder->_scintView.execute(SCI_USEPOPUP, FALSE);
_pFinder->_scintView.execute(SCI_SETUNDOCOLLECTION, false); //dont store any undo information
_pFinder->_scintView.execute(SCI_SETCARETLINEVISIBLE, 1);
_pFinder->_scintView.execute(SCI_SETCARETLINEVISIBLEALWAYS, true);
_pFinder->_scintView.execute(SCI_SETCARETWIDTH, 0);
_pFinder->_scintView.showMargin(ScintillaEditView::_SC_MARGE_FOLDER, true);
@ -2814,8 +2812,6 @@ Finder * FindReplaceDlg::createFinder()
pFinder->_scintView.execute(SCI_SETCODEPAGE, SC_CP_UTF8);
pFinder->_scintView.execute(SCI_USEPOPUP, FALSE);
pFinder->_scintView.execute(SCI_SETUNDOCOLLECTION, false); //dont store any undo information
pFinder->_scintView.execute(SCI_SETCARETLINEVISIBLE, 1);
pFinder->_scintView.execute(SCI_SETCARETLINEVISIBLEALWAYS, true);
pFinder->_scintView.execute(SCI_SETCARETWIDTH, 0);
pFinder->_scintView.showMargin(ScintillaEditView::_SC_MARGE_FOLDER, true);
@ -4329,7 +4325,9 @@ void Finder::setFinderStyle()
const Style * pStyle = pStyler->findByID(SCE_SEARCHRESULT_CURRENT_LINE);
if (pStyle)
{
_scintView.execute(SCI_SETCARETLINEBACK, pStyle->_bgColor);
_scintView.execute(SCI_SETELEMENTCOLOUR, SC_ELEMENT_CARET_LINE_BACK, pStyle->_bgColor);
_scintView.execute(SCI_SETCARETLINEFRAME, 0);
_scintView.execute(SCI_SETCARETLINEVISIBLEALWAYS, true);
}
}
_scintView.setSearchResultLexer();