diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-06-12 18:55:55 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-06-12 18:55:55 -0700 |
| commit | 8000a4a1bbe5685bf096971563743424ed60c78a (patch) | |
| tree | e17781a3bddfc92de340767a9c502ecd99ae226f /bb.c | |
| parent | bd06e6c99ab395bdf8dcd7030feb832de9080461 (diff) | |
Renamed command->script in more places to avoid confusion.
Diffstat (limited to 'bb.c')
| -rw-r--r-- | bb.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -259,9 +259,9 @@ void* memcheck(void *p) } /* - * Run a command with the selected files passed as sequential arguments to the - * command (or pass the cursor file if none are selected). - * Return the exit status of the command. + * Run a shell script with the selected files passed as sequential arguments to + * the script (or pass the cursor file if none are selected). + * Return the exit status of the script. */ int run_script(bb_t *bb, const char *cmd) { @@ -1321,13 +1321,13 @@ void bb_browse(bb_t *bb, const char *path) run_binding: if (cmdpos != 0) err("Command file still open"); - if (binding->command[0] == '+') { - process_cmd(bb, binding->command + 1); + if (binding->script[0] == '+') { + process_cmd(bb, binding->script + 1); } else { move_cursor(tty_out, 0, termheight-1); fputs(T_ON(T_SHOW_CURSOR), tty_out); close_term(); - run_script(bb, binding->command); + run_script(bb, binding->script); init_term(); fputs(T_ON(T_ALT_SCREEN), tty_out); check_cmds = 1; |
