Commit fc4322e
fix(windows): quote diff-pane argv so git receives the delta pager intact
The previous Windows diff fix moved delta into git's pager
(`-c core.pager=delta --paging=always`), but alacritty_terminal joins
PTY argv into a single CreateProcess command line and only quotes
arguments when `Options::escape_args` is set — and we left it at the
default `false`. The pager spec split on its space, git rejected
`--paging=always` as an unknown global option and exited immediately,
and the reaper closed the pane before the error could render: the diff
"opened" and vanished showing nothing. Any file path containing a space
would split the same way.
Enable `escape_args` for diff panes, whose argv is built in code.
Config-shell args stay raw to match upstream alacritty's handling of
user-authored shell arguments.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent f845041 commit fc4322e
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
311 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
312 | 317 | | |
313 | 318 | | |
314 | 319 | | |
| |||
0 commit comments