summaryrefslogtreecommitdiff
path: root/src/style.rs
diff options
context:
space:
mode:
authorThomas Otto <th1000s@posteo.net>2024-11-26 20:19:46 +0100
committerThomas Otto <th1000s@posteo.net>2025-08-03 17:43:25 +0200
commitd5e0565cbfa47acde98d41d8777ace5d1bc4d690 (patch)
treeaba2116476bbeba18588975497c89e5aa464a0f2 /src/style.rs
parent686f19ae49e26e972ea2cc761b84ee5f99cab872 (diff)
Styled zero lines fixmain
With `interactive.diffFilter = delta --color-only` delta is called by e.g. `git add -p`, but in this mode git hides the terminal from the pager. Plus/minus lines correctly use ANSI sequences to paint up to to the end of the line, but zero lines always use spaces. This needs the terminal width, but it is not available for diffFilter. So the fallback of 80 is used, and zero styles did not extend to the full terminal width. Since zero lines are only rarely styled (e.g. via `--zero-style='syntax "#1d1f21" dim'`), this was never noticed. This also crashed delta when a zero line was longer than 80.
Diffstat (limited to 'src/style.rs')
0 files changed, 0 insertions, 0 deletions