parent
caff51c788
commit
5c10f58212
|
@ -535,6 +535,7 @@ bool Finder::notify(SCNotification *notification)
|
||||||
end = lineEndAbsPos;
|
end = lineEndAbsPos;
|
||||||
|
|
||||||
_scintView.execute(SCI_SETSEL, begin, end);
|
_scintView.execute(SCI_SETSEL, begin, end);
|
||||||
|
_scintView.execute(SCI_SCROLLRANGE, begin, end);
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -939,7 +940,6 @@ void Finder::gotoNextFoundResult(int direction)
|
||||||
}
|
}
|
||||||
|
|
||||||
_scintView.execute(SCI_ENSUREVISIBLE, lno);
|
_scintView.execute(SCI_ENSUREVISIBLE, lno);
|
||||||
_scintView.execute(SCI_SCROLLCARET);
|
|
||||||
std::pair<intptr_t, intptr_t> newPos = gotoFoundLine(n);
|
std::pair<intptr_t, intptr_t> newPos = gotoFoundLine(n);
|
||||||
|
|
||||||
lineStartAbsPos = _scintView.execute(SCI_POSITIONFROMLINE, lno);
|
lineStartAbsPos = _scintView.execute(SCI_POSITIONFROMLINE, lno);
|
||||||
|
@ -952,6 +952,7 @@ void Finder::gotoNextFoundResult(int direction)
|
||||||
end = lineEndAbsPos;
|
end = lineEndAbsPos;
|
||||||
|
|
||||||
_scintView.execute(SCI_SETSEL, begin, end);
|
_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;
|
end = lineEndAbsPos;
|
||||||
|
|
||||||
pFinder->_scintView.execute(SCI_SETSEL, begin, end);
|
pFinder->_scintView.execute(SCI_SETSEL, begin, end);
|
||||||
|
pFinder->_scintView.execute(SCI_SCROLLRANGE, begin, end);
|
||||||
}
|
}
|
||||||
else if (wParam == VK_ESCAPE)
|
else if (wParam == VK_ESCAPE)
|
||||||
pFinder->display(false);
|
pFinder->display(false);
|
||||||
|
|
Loading…
Reference in New Issue