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

mods/diff: context lines draw on no background, not the cyan background-task accentBrowse files
poteat authored on Sep 10, 2026 parent 8939dec · commit 573ada6dd0c2
2 changed files+14 -10compared with 8939dec
Mmods/diff/hooks/views/detail/backgrounds/backgrounds.ts
Mmods/diff/hooks/views/detail/word-backgrounds/word-backgrounds.ts
@@ -2,10 +2,12 @@
22
33 /**
44 * The theme key behind a run of each kind: the diff's added and removed
5- * bands, the plain background behind context.
5+ * bands. A context run has none and draws on the terminal's own background
6+ * (the theme's `background` key is the background-task accent, a cyan).
67 */
7-export const BACKGROUNDS: Readonly<Record<Types.LineKind, string>> = {
8- added: 'diffAdded',
9- removed: 'diffRemoved',
10- context: 'background',
11-}
8+export const BACKGROUNDS: Readonly<Record<Types.LineKind, string | undefined>> =
9+ {
10+ added: 'diffAdded',
11+ removed: 'diffRemoved',
12+ context: undefined,
13+ }
@@ -1,11 +1,13 @@
11 import type Types from '../types'
22
33 /**
4- * The theme key behind a changed word of each kind (a context line never
5- * carries one).
4+ * The theme key behind a changed word of each kind; a context line never
5+ * carries one, so it has none.
66 */
7-export const WORD_BACKGROUNDS: Readonly<Record<Types.LineKind, string>> = {
7+export const WORD_BACKGROUNDS: Readonly<
8+ Record<Types.LineKind, string | undefined>
9+> = {
810 added: 'diffAddedWord',
911 removed: 'diffRemovedWord',
10- context: 'background',
12+ context: undefined,
1113 }