diff options
| author | Alexey Yerin <yyp@disroot.org> | 2023-08-27 22:52:53 +0300 |
|---|---|---|
| committer | Randy Palamar <palamar@ualberta.ca> | 2023-08-27 14:22:58 -0600 |
| commit | de315f878fba5b6abf2810a05995ae1f5b00d45d (patch) | |
| tree | 77a17775ba85305b61e34ccb0261a34e2521ff99 /vis-operators.c | |
| parent | 450dc2df6a3b6443e372dc86cbefc8fede71b54d (diff) | |
| download | vis-de315f878fba5b6abf2810a05995ae1f5b00d45d.tar.gz vis-de315f878fba5b6abf2810a05995ae1f5b00d45d.tar.xz | |
Make expandtab option window-local
Diffstat (limited to 'vis-operators.c')
| -rw-r--r-- | vis-operators.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
