spacehub

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

claude-code / mods / diff / hooks / views / inset-of / inset-of.ts
17 lines · 545 BRaw
1import Limits from '../../limits'
2import type { Kit } from '../kit'
3
4/**
5 * A drawing's kit inside the docked pane's padding: the built-in's blank
6 * last column taken off.
7 *
8 * No row comes off: the blank row above the header is the engine's own,
9 * the one it keeps over a docked pane's body for its close mark.
10 *
11 * @param kit the drawing's kit at the pane's full size
12 * @returns the kit its body draws with
13 */
14export const insetOf = (kit: Kit): Kit => ({
15 ...kit,
16 columns: Math.max(1, kit.columns - Limits.PANE_RIGHT_PAD_COLUMNS),
17})