mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-25 02:01:28 -05:00
bugfix: crash on selection on wide glyphs in scrollback buffer (#1879)
This commit is contained in:
@@ -91,7 +91,7 @@ const SHORT Terminal::_ExpandWideGlyphSelectionLeft(const SHORT xPos, const SHOR
|
||||
{
|
||||
// move off by highlighting the lead half too.
|
||||
// alters position.X
|
||||
_mutableViewport.DecrementInBounds(position);
|
||||
_buffer->GetSize().DecrementInBounds(position);
|
||||
}
|
||||
return position.X;
|
||||
}
|
||||
@@ -116,7 +116,7 @@ const SHORT Terminal::_ExpandWideGlyphSelectionRight(const SHORT xPos, const SHO
|
||||
{
|
||||
// move off by highlighting the trailing half too.
|
||||
// alters position.X
|
||||
_mutableViewport.IncrementInBounds(position);
|
||||
_buffer->GetSize().IncrementInBounds(position);
|
||||
}
|
||||
return position.X;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user