{"version":"2.1.311","anchor":"write-tool-result-preview-wraps-by-visual-rows-and-reports-h","canonical_anchor":"write-tool-result-preview-wraps-by-visual-rows-and-reports-h","heading":"Write previews now fit long lines and count hidden characters","tier":"notice","area":"Terminal UI","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.311\/e\/write-tool-result-preview-wraps-by-visual-rows-and-reports-h","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.311","markdown":"### Write previews now fit long lines and count hidden characters\n\nThe preview shown after Claude writes a file now trims by wrapped screen rows and says how many characters are hidden, not just how many lines\n\n**What**\n\nWhen Claude creates or overwrites a file with the Write tool, Claude Code shows a short preview of what was written. That preview now:\n\n- works out how many screen rows each line takes once it wraps\n\n- sizes its box to the width of your terminal\n\n- cuts the preview off by wrapped rows instead of by raw line count\n\n- tells the truncation notice how many characters are hidden, as well as how many lines\n\nBefore, it cut the preview off by counting raw lines only.\n\n**Why**\n\nFiles with very long lines no longer give a misleading preview, because a single long line can fill many rows on screen.\n\n- Area: Terminal UI\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}