[BUG] word diff is misleading
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Notice how the words west and east are highlighted, but this is not an accurate reflection of the proposed edit.
<img width="711" height="698" alt="Image" src="https://github.com/user-attachments/assets/69a1fb40-ca8f-4161-b465-e88a3a5e8949" />
What Should Happen?
\newcommand{\partdecorations}{%
[-\AddToShipoutPictureFG*{%-]
[- \AtTextLowerLeft{%-] \begin{tikzpicture}[remember picture, overlay]
% Top-left corner (character 77 = M)
% Top-right corner (character 79 = O)
% Bottom-right corner (character 82 = R)
% Bottom-left corner (character 80 = P)
\node[anchor=north west, inner sep=0pt]
at [-(0,\textheight)-]{+(current page.north west)+} {{\webomints\HUGE R}};
\node[anchor=north east, inner sep=0pt]
at [-(\textwidth,\textheight)-]{+(current page.north east)+} {{\webomints\HUGE P}};
\node[anchor=south east, inner sep=0pt]
at [-(\textwidth,0)-]{+(current page.south east)+} {{\webomints\HUGE M}};
\node[anchor=south west, inner sep=0pt]
at [-(0,0)-]{+(current page.south west)+} {{\webomints\HUGE O}};
\end{tikzpicture}%[-}%-]
[- }%-]
}
Error Messages/Logs
Steps to Reproduce
Prompt: Get rid of the \AddToShipoutPictureFG wrapper in \partdecorations
I attached the pre-change file.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.51
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
I'm using ghostty
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗