Repository: microsoft/terminal (language: cpp)

Issue:
Double clicking on text to highlight is incorrect for wide characters (DECDWL).
### Windows Terminal version

1.19.10573.0

### Windows build number

10.0.19045

### Other Software

_No response_

### Steps to reproduce

Write-Output "$([char]27)#6Wide characters"
Double click on the "h".
![image](https://github.com/microsoft/terminal/assets/50969206/5db2a841-1e5e-4137-96ac-466b9b981d07)


### Expected Behavior

"characters" should be highlighted

### Actual Behavior

"de cha" is highlighted


Discussion / hints:

Fix patch:
diff --git a/src/buffer/out/textBuffer.cpp b/src/buffer/out/textBuffer.cpp
index 5c71dd1d398..a6951103f87 100644
--- a/src/buffer/out/textBuffer.cpp
+++ b/src/buffer/out/textBuffer.cpp
@@ -1298,7 +1298,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:


Test patch: