Skip to content

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.

TypeScript

mods/diff: three hook files are formatted as the rest are

poteat4d63891b4fe2
diff --git a/mods/diff/hooks/ask/fitted-ask-text-of.ts b/mods/diff/hooks/ask/fitted-ask-text-of.ts
index caddbf48..0098de00 100644
--- a/mods/diff/hooks/ask/fitted-ask-text-of.ts
+++ b/mods/diff/hooks/ask/fitted-ask-text-of.ts
@@ -8,7 +8,10 @@ import { ASK_CUT_NOTE } from './ask-cut-note.js'
* @param room the characters the context has left
* @returns the text to attach, or undefined when not even its first line fits
*/
-export function fittedAskTextOf(text: string, room: number): string | undefined {
+export function fittedAskTextOf(
+ text: string,
+ room: number,
+): string | undefined {
if (text.length <= room) {
return text
}
diff --git a/mods/diff/hooks/views/current-pane/message-pane-of/message-pane-of.tsx b/mods/diff/hooks/views/current-pane/message-pane-of/message-pane-of.tsx
index 7c441468..d239a6b1 100644
--- a/mods/diff/hooks/views/current-pane/message-pane-of/message-pane-of.tsx
+++ b/mods/diff/hooks/views/current-pane/message-pane-of/message-pane-of.tsx
@@ -49,8 +49,7 @@ export function messagePaneOf(
const middleRows = kit.rows - top.length - 1 - (earlier === null ? 0 : 3)
const above = Math.floor((middleRows - lines.length) / 2)
const isCentered =
- rest.length === 0 &&
- middleRows - above - lines.length >= controlRows.length
+ rest.length === 0 && middleRows - above - lines.length >= controlRows.length
if (!isCentered) {
return (
diff --git a/mods/diff/hooks/views/layout/wrapped-lines/wrapped-lines.ts b/mods/diff/hooks/views/layout/wrapped-lines/wrapped-lines.ts
index ae4625c2..8ed5ecad 100644
--- a/mods/diff/hooks/views/layout/wrapped-lines/wrapped-lines.ts
+++ b/mods/diff/hooks/views/layout/wrapped-lines/wrapped-lines.ts
@@ -29,7 +29,8 @@ export function wrappedLines(text: string, columns: number): string[] {
}
if (wordWidth > width) {
- const breaksHere = 1 + Math.floor((wordWidth - (width - rowWidth) - 1) / width)
+ const breaksHere =
+ 1 + Math.floor((wordWidth - (width - rowWidth) - 1) / width)
const breaksNext = Math.floor((wordWidth - 1) / width)
if (breaksNext < breaksHere) {