summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-09 23:43:06 -0300
committerGabriel Schneider <[email protected]>2026-08-10 09:17:07 -0300
commit0d66575a3c888498c7929e2ec345133628c5d63d (patch)
tree3be80051fd505f9675b36f9b570c46a955ca3445 /src/config.zig
parent4b5e793f48f6e721c39ab6ddcf755604df73b643 (diff)
downloadpardes-0d66575a3c888498c7929e2ec345133628c5d63d.tar.gz
pardes-0d66575a3c888498c7929e2ec345133628c5d63d.zip
fix tab rendering - waybe wreckless
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.zig b/src/config.zig
index 3c9664f0..67314fd9 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -452,6 +452,12 @@ pub const default_shell = "fish";
/// the file pane's line-number gutter, in columns
pub const PREFIX_W: u16 = 5;
+/// Display width of a literal tab in every Surface-backed frontend. This is a
+/// compile-time setting: edit it and rebuild; zero cannot advance the renderer.
+pub const tab_width: u16 = 4;
+comptime {
+ if (tab_width == 0) @compileError("config.tab_width must be greater than zero");
+}
/// soft wrap (the Wrap builtin): the glyph a wrapped row ends with, in the one
/// column bodyText keeps free for it. A break is the one thing about a wrapped
/// line you cannot see — the text simply continues, and a missing line number