mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
input: pipe-*: set current CWD when spawning the sub-process
Closes #1166
This commit is contained in:
parent
d2e67689ea
commit
1c072856eb
2 changed files with 5 additions and 1 deletions
|
|
@ -55,6 +55,10 @@
|
|||
* Default color theme from a variant of the Zenburn theme, to a
|
||||
variant of the Solarized dark theme.
|
||||
* Default `pad` from 2x2 to 0x0 (i.e. no padding at all).
|
||||
* Current working directory (as set by OSC-7) is now passed to the
|
||||
program executed by the `pipe-*` key bindings ([#1166][166]).
|
||||
|
||||
[1166]: https://codeberg.org/dnkl/foot/issues/1166
|
||||
|
||||
|
||||
### Deprecated
|
||||
|
|
|
|||
2
input.c
2
input.c
|
|
@ -283,7 +283,7 @@ execute_binding(struct seat *seat, struct terminal *term,
|
|||
}
|
||||
}
|
||||
|
||||
if (!spawn(term->reaper, NULL, binding->aux->pipe.args,
|
||||
if (!spawn(term->reaper, term->cwd, binding->aux->pipe.args,
|
||||
pipe_fd[0], stdout_fd, stderr_fd, NULL))
|
||||
goto pipe_err;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue