From 35d4f7f889b3f92bce36274c32d146a091ec9881 Mon Sep 17 00:00:00 2001 From: Eric Nelson Date: Fri, 9 Feb 2024 00:03:16 -0800 Subject: [PATCH] Fix for search selections highlight going backward when the selection wraps to the next line. --- src/cascadia/TerminalCore/TerminalSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cascadia/TerminalCore/TerminalSelection.cpp b/src/cascadia/TerminalCore/TerminalSelection.cpp index fd440470f86..ae1db3507b4 100644 --- a/src/cascadia/TerminalCore/TerminalSelection.cpp +++ b/src/cascadia/TerminalCore/TerminalSelection.cpp @@ -83,7 +83,7 @@ std::vector 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) {