mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-10 00:48:23 -06:00
Fix selection expansion for Double-Width and Double-Height rows (#16812)
Closes #16782 ### Validation Steps Performed - Double-clicking on a Double-Width row selects the word (identified by delimiters) under the cursor. - Tripple-clicking on a Double-Width row selects the whole line under the cursor. - The same works for Double-Height rows also. - The same works for Single-Width rows also.
This commit is contained in:
parent
ad0c28b30d
commit
4d58137bd4
@ -1297,7 +1297,8 @@ void TextBuffer::TriggerNewTextNotification(const std::wstring_view newText)
|
||||
// - the delimiter class for the given char
|
||||
DelimiterClass TextBuffer::_GetDelimiterClassAt(const til::point pos, const std::wstring_view wordDelimiters) const
|
||||
{
|
||||
return GetRowByOffset(pos.y).DelimiterClassAt(pos.x, wordDelimiters);
|
||||
const auto realPos = ScreenToBufferPosition(pos);
|
||||
return GetRowByOffset(realPos.y).DelimiterClassAt(realPos.x, wordDelimiters);
|
||||
}
|
||||
|
||||
// Method Description:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user