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
307 B
Raw Blame
import type { Segment } from '../../types'

/**
 * The rows a segment takes: a hunk's as counted when it was laid out, one
 * for anything else.
 *
 * @param segment the segment
 * @returns the rows
 */
export const segmentRowsOf = (segment: Segment): number =>
  segment.kind === 'hunk' ? segment.rows : 1