aboutsummaryrefslogtreecommitdiff
path: root/src/work.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-01 00:49:32 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-01 00:49:32 +0100
commit500892b2ae64676d1855d8a357cd39e8a9e7f6c2 (patch)
tree2ab4ea40675d15a66d4a0c4295818f9f83e8c1b1 /src/work.c
parent26a95b35414d0d4b729f3fd5da010debb70b412b (diff)
Add support for $GRAB_TABSIZE
Diffstat (limited to 'src/work.c')
-rw-r--r--src/work.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/work.c b/src/work.c
index 6e658db..62f997e 100644
--- a/src/work.c
+++ b/src/work.c
@@ -21,7 +21,7 @@
#include <unicode/string.h>
#include "exitcodes.h"
-#include "flags.h"
+#include "globals.h"
#include "util.h"
#include "work.h"
@@ -64,11 +64,6 @@ static typeof(operator_dispatch) *operators[] = {
['X'] = operator_X,
};
-extern atomic_int rv;
-extern op_t *ops;
-extern bool cflag;
-extern typeof(pcre2_match) *pcre2_match_fn;
-
void
@@ -454,7 +449,7 @@ compute_pos(const char8_t *p, pos_state_t *ps)
ps->row++;
ps->col = 0;
} else
- ps->col = ucswdth(g, ps->col, 8); /* TODO: Configurable tabsize? */
+ ps->col = ucswdth(g, ps->col, grab_tabsize);
}
}