aboutsummaryrefslogtreecommitdiff
path: root/vis-operators.c
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2025-12-13 09:38:53 -0700
committerRandy Palamar <randy@rnpnr.xyz>2025-12-22 09:13:47 -0700
commitdd29e2f4321bea25c53af5def7a23fe57640de50 (patch)
treee551785b024639f560ff4709c94fe8704e06bd4d /vis-operators.c
parent569b61137cf45521d9fd4f693cf841be485dd4b8 (diff)
downloadvis-dd29e2f4321bea25c53af5def7a23fe57640de50.tar.gz
vis-dd29e2f4321bea25c53af5def7a23fe57640de50.tar.xz
silence new gcc warnings
Diffstat (limited to 'vis-operators.c')
-rw-r--r--vis-operators.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-operators.c b/vis-operators.c
index ae2da5a..d2b42d3 100644
--- a/vis-operators.c
+++ b/vis-operators.c
@@ -99,7 +99,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] = " ";
+ char spaces[9] = " ";
spaces[MIN(vis->win->view.tabwidth, LENGTH(spaces) - 1)] = '\0';
const char *tab = vis->win->expandtab ? spaces : "\t";
size_t tablen = strlen(tab);