diff options
| author | Ali <[email protected]> | 2025-07-17 20:53:30 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-17 17:53:30 +0000 |
| commit | 4ca471bac63cf5f779240ca75d8efa8f9210b554 (patch) | |
| tree | 51cde59a91780c72fc1042720f1bba7fd38f30db /packages/cli/src/ui/components/shared/text-buffer.ts | |
| parent | 88b5f209432c06c58b8bdf78d69ac5fccb26838f (diff) | |
Fix ANSI escape crash in text buffer (#3987) (#3999)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/components/shared/text-buffer.ts')
| -rw-r--r-- | packages/cli/src/ui/components/shared/text-buffer.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/cli/src/ui/components/shared/text-buffer.ts b/packages/cli/src/ui/components/shared/text-buffer.ts index 4b7c3e79..7eb3088a 100644 --- a/packages/cli/src/ui/components/shared/text-buffer.ts +++ b/packages/cli/src/ui/components/shared/text-buffer.ts @@ -40,7 +40,7 @@ function isWordChar(ch: string | undefined): boolean { */ function stripUnsafeCharacters(str: string): string { const stripped = stripAnsi(str); - return toCodePoints(stripAnsi(stripped)) + return toCodePoints(stripped) .filter((char) => { if (char.length > 1) return false; const code = char.codePointAt(0); |
