Fix hit text in search results being out of sight issue
Fix #13129, close #13138
This commit is contained in:
parent
caff51c788
commit
5c10f58212
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue