Fix hit text in search results being out of sight issue

Fix #13129, close #13138
This commit is contained in:
Alan Kilborn 2023-02-15 15:19:42 -05:00 committed by Don Ho
parent caff51c788
commit 5c10f58212
1 changed files with 3 additions and 1 deletions

View File

@ -535,6 +535,7 @@ bool Finder::notify(SCNotification *notification)
end = lineEndAbsPos;
_scintView.execute(SCI_SETSEL, begin, end);
_scintView.execute(SCI_SCROLLRANGE, begin, end);
}
break;
@ -939,7 +940,6 @@ void Finder::gotoNextFoundResult(int direction)
}
_scintView.execute(SCI_ENSUREVISIBLE, lno);
_scintView.execute(SCI_SCROLLCARET);
std::pair<intptr_t, intptr_t> newPos = gotoFoundLine(n);
lineStartAbsPos = _scintView.execute(SCI_POSITIONFROMLINE, lno);
@ -952,6 +952,7 @@ void Finder::gotoNextFoundResult(int direction)
end = lineEndAbsPos;
_scintView.execute(SCI_SETSEL, begin, end);
_scintView.execute(SCI_SCROLLRANGE, begin, end);
}
@ -4028,6 +4029,7 @@ LRESULT FAR PASCAL FindReplaceDlg::finderProc(HWND hwnd, UINT message, WPARAM wP
end = lineEndAbsPos;
pFinder->_scintView.execute(SCI_SETSEL, begin, end);
pFinder->_scintView.execute(SCI_SCROLLRANGE, begin, end);
}
else if (wParam == VK_ESCAPE)
pFinder->display(false);