diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2024-05-11 16:27:29 -0600 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-05-21 20:21:46 -0600 |
| commit | 4c2b2d8a100a67212134c1bb89fad39311fa441e (patch) | |
| tree | 787c25f89551cd3222b43e43c077c47a1e6aaeb8 /vis-operators.c | |
| parent | f4b26ee480b6c6af1bf27126ca7294847e9d3a79 (diff) | |
| download | vis-4c2b2d8a100a67212134c1bb89fad39311fa441e.tar.gz vis-4c2b2d8a100a67212134c1bb89fad39311fa441e.tar.xz | |
make View unopaque
Diffstat (limited to 'vis-operators.c')
| -rw-r--r-- | vis-operators.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vis-operators.c b/vis-operators.c index 817480d..5ce64c4 100644 --- a/vis-operators.c +++ b/vis-operators.c @@ -102,7 +102,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'; + spaces[MIN(vis->win->view->tabwidth, LENGTH(spaces) - 1)] = '\0'; 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; @@ -127,7 +127,7 @@ static size_t op_shift_right(Vis *vis, Text *txt, OperatorContext *c) { static size_t op_shift_left(Vis *vis, Text *txt, OperatorContext *c) { size_t pos = text_line_begin(txt, c->range.end), prev_pos; - size_t tabwidth = view_tabwidth_get(vis->win->view), tablen; + size_t tabwidth = vis->win->view->tabwidth, tablen; size_t newpos = c->pos; /* if range ends at the begin of a line, skip line break */ |
