aboutsummaryrefslogtreecommitdiff
path: root/vis-cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-cmds.c')
-rw-r--r--vis-cmds.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/vis-cmds.c b/vis-cmds.c
index 16debea..e6ddeb0 100644
--- a/vis-cmds.c
+++ b/vis-cmds.c
@@ -150,6 +150,17 @@ static bool cmd_set(Vis *vis, Win *win, Command *cmd, const char *argv[], Cursor
size_t opt_index = opt - options;
switch (opt_index) {
+ case OPTION_SHELL:
+ {
+ char *shell = strdup(arg.s);
+ if (!shell) {
+ vis_info_show(vis, "Failed to change shell");
+ return false;
+ }
+ free(vis->shell);
+ vis->shell = shell;
+ break;
+ }
case OPTION_EXPANDTAB:
vis->expandtab = arg.b;
break;