fe
terminal file explorer and picker
git clone https://9o.is/git/fe.git
commit 62b0a4e9a5c8b38e6cebb2e3887f2a14b1db6a5c parent 24c6b472ded585c4e779f6a4e5f8bef64f9ef9a2 Author: Jul <jul@9o.is> Date: Tue, 20 Jan 2026 07:44:56 -0500 rename xspawn Diffstat:
| M | tty_interface.c | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tty_interface.c b/tty_interface.c @@ -81,7 +81,7 @@ static void draw(tty_interface_t *state) { #define EXEC_SHELL 2 #define EXEC_CAPTURE 4 -static int x_spawn(const char *cmd, char *const argv[], int flags, char *out_buf, size_t out_sz) { +static int xspawn(const char *cmd, char *const argv[], int flags, char *out_buf, size_t out_sz) { int pipefd[2]; if (flags & EXEC_CAPTURE) { @@ -144,7 +144,7 @@ void action_select(tty_interface_t *state, const char *argv) { snprintf(fullpath, sizeof(fullpath), "%s/%s", state->entries->path, selection->name); char *const sargv[] = {(char *)state->options->run, fullpath, NULL}; - x_spawn(state->options->run, sargv, EXEC_REPLACE, NULL, 0); + xspawn(state->options->run, sargv, EXEC_REPLACE, NULL, 0); state->exit = EXIT_FAILURE; } tty_close(state->tty); @@ -242,7 +242,7 @@ void action_run(tty_interface_t *state, const char *argv) { snprintf(input, input_len, argv, state->entries->path, entry->name); clear(state); - x_spawn(input, NULL, EXEC_SHELL, NULL, 0); + xspawn(input, NULL, EXEC_SHELL, NULL, 0); free(input); tty_hide_cursor(state->tty); @@ -263,7 +263,7 @@ void action_setpath(tty_interface_t *state, const char *argv) { char output[PATH_MAX]; clear(state); - if (0 == x_spawn(input, NULL, EXEC_SHELL | EXEC_CAPTURE, output, sizeof(output))) + if (0 == xspawn(input, NULL, EXEC_SHELL | EXEC_CAPTURE, output, sizeof(output))) entries_setpath(state->entries, output); free(input);