From 0d66575a3c888498c7929e2ec345133628c5d63d Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 9 Aug 2026 23:43:06 -0300 Subject: fix tab rendering - waybe wreckless --- src/config.zig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/config.zig') 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 -- cgit v1.3