Fix for search selections highlight going backward when the selection wraps to next line (#16691)
Hi, I realized I had a bug in my pull request for search selections where when the highlight is wrapped it causes the selection to select back to start of the current line instead of wrapping to the next line. PR where I introduced this bug: #16227
This commit is contained in:
parent
71c35cf24c
commit
bef234081a
|
@ -83,7 +83,7 @@ std::vector<til::inclusive_rect> Terminal::_GetSearchSelectionRects(Microsoft::C
|
|||
for (auto selection = lowerIt; selection != upperIt; ++selection)
|
||||
{
|
||||
const auto start = til::point{ selection->left, selection->top };
|
||||
const auto end = til::point{ selection->right, selection->top };
|
||||
const auto end = til::point{ selection->right, selection->bottom };
|
||||
const auto adj = _activeBuffer().GetTextRects(start, end, _blockSelection, false);
|
||||
for (auto a : adj)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue