summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/shared/text-buffer.ts
diff options
context:
space:
mode:
authorAli <[email protected]>2025-07-17 20:53:30 +0300
committerGitHub <[email protected]>2025-07-17 17:53:30 +0000
commit4ca471bac63cf5f779240ca75d8efa8f9210b554 (patch)
tree51cde59a91780c72fc1042720f1bba7fd38f30db /packages/cli/src/ui/components/shared/text-buffer.ts
parent88b5f209432c06c58b8bdf78d69ac5fccb26838f (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.ts2
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);