aboutsummaryrefslogtreecommitdiff
path: root/vis-cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-cmds.c')
-rw-r--r--vis-cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-cmds.c b/vis-cmds.c
index 968b7f2..9e4ed21 100644
--- a/vis-cmds.c
+++ b/vis-cmds.c
@@ -255,7 +255,7 @@ static bool cmd_set(Vis *vis, Win *win, Command *cmd, const char *argv[], Select
break;
}
case OPTION_EXPANDTAB:
- vis->expandtab = toggle ? !vis->expandtab : arg.b;
+ vis->win->expandtab = toggle ? !vis->win->expandtab : arg.b;
break;
case OPTION_AUTOINDENT:
vis->autoindent = toggle ? !vis->autoindent : arg.b;