surshar / claude-code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
Built by Anthropic · github.com/anthropics
| Mmods/diff/hooks/ask/fitted-ask-text-of.ts |
| Mmods/diff/hooks/views/current-pane/message-pane-of/message-pane-of.tsx |
| Mmods/diff/hooks/views/layout/wrapped-lines/wrapped-lines.ts |
| @@ -8,7 +8,10 @@ | ||
| 8 | 8 | * @param room the characters the context has left |
| 9 | 9 | * @returns the text to attach, or undefined when not even its first line fits |
| 10 | 10 | */ |
| 11 | -export function fittedAskTextOf(text: string, room: number): string | undefined { | |
| 11 | +export function fittedAskTextOf( | |
| 12 | + text: string, | |
| 13 | + room: number, | |
| 14 | +): string | undefined { | |
| 12 | 15 | if (text.length <= room) { |
| 13 | 16 | return text |
| 14 | 17 | } |
| @@ -49,8 +49,7 @@ | ||
| 49 | 49 | const middleRows = kit.rows - top.length - 1 - (earlier === null ? 0 : 3) |
| 50 | 50 | const above = Math.floor((middleRows - lines.length) / 2) |
| 51 | 51 | const isCentered = |
| 52 | - rest.length === 0 && | |
| 53 | - middleRows - above - lines.length >= controlRows.length | |
| 52 | + rest.length === 0 && middleRows - above - lines.length >= controlRows.length | |
| 54 | 53 | |
| 55 | 54 | if (!isCentered) { |
| 56 | 55 | return ( |
| @@ -29,7 +29,8 @@ | ||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | if (wordWidth > width) { |
| 32 | - const breaksHere = 1 + Math.floor((wordWidth - (width - rowWidth) - 1) / width) | |
| 32 | + const breaksHere = | |
| 33 | + 1 + Math.floor((wordWidth - (width - rowWidth) - 1) / width) | |
| 33 | 34 | const breaksNext = Math.floor((wordWidth - 1) / width) |
| 34 | 35 | |
| 35 | 36 | if (breaksNext < breaksHere) { |