From de315f878fba5b6abf2810a05995ae1f5b00d45d Mon Sep 17 00:00:00 2001 From: Alexey Yerin Date: Sun, 27 Aug 2023 22:52:53 +0300 Subject: Make expandtab option window-local --- vis-operators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-operators.c') diff --git a/vis-operators.c b/vis-operators.c index a447543..0e4f8b4 100644 --- a/vis-operators.c +++ b/vis-operators.c @@ -103,7 +103,7 @@ static size_t op_put(Vis *vis, Text *txt, OperatorContext *c) { static size_t op_shift_right(Vis *vis, Text *txt, OperatorContext *c) { char spaces[9] = " "; spaces[MIN(view_tabwidth_get(vis->win->view), LENGTH(spaces) - 1)] = '\0'; - const char *tab = vis->expandtab ? spaces : "\t"; + const char *tab = vis->win->expandtab ? spaces : "\t"; size_t tablen = strlen(tab); size_t pos = text_line_begin(txt, c->range.end), prev_pos; size_t newpos = c->pos; -- cgit v1.2.3