mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fix foreach runes bug with unicode surrogate pairs (#3894)
This commit is contained in:
@@ -2124,7 +2124,7 @@ public class TextFormatter
|
||||
var start = string.Empty;
|
||||
var i = 0;
|
||||
|
||||
foreach (Rune c in text)
|
||||
foreach (Rune c in text.EnumerateRunes ())
|
||||
{
|
||||
if (c == hotKeySpecifier && i == hotPos)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user