[Bug] Syntax Highlighting Glitch with Think Keywords Causing Color Bleed

Resolved 💬 6 comments Opened Oct 2, 2025 by nllptrx Closed Oct 7, 2025

Bug Description
When editing text containing the keywords think, hard think, or ultrathink, the highlight color “moves” with the cursor. As the cursor passes over characters, the color is applied to other words. The terminal sometimes prints raw SGR fragments like \[7m … \[27m (seen as [7m … [27m), breaking usability when editing already typed text after writing said keywords.

Environment Info

  • Platform: linux
  • Terminal: ghostty
  • Version: 2.0.1
  • Feedback ID: bc6df741-eec8-49c6-893b-2d31a819b79e

Errors

[]

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗