diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-01 19:20:19 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 19:57:27 -0300 |
| commit | 2868516c215a96d9e1e933ded7ac5744ec16c368 (patch) | |
| tree | f4283b58044fc0b2155f1a0526a87357b0ca62cc /src/mini.zig | |
| parent | 5f41a03fdcf0eaa3c1917e0f94243878c481cf8b (diff) | |
| download | pardes-2868516c215a96d9e1e933ded7ac5744ec16c368.tar.gz pardes-2868516c215a96d9e1e933ded7ac5744ec16c368.zip | |
Tab N sets a tab's width in cells, 1 through 16, in every pane, drawn and counted (wrapping, clicks, the cursor); bare Tab says it; the ctl read and a Dump keep it
A session setting, not acme's per window: the width is read by File's pure
width functions (~130 callers that are given no pane), so it is one value,
config.tab_now, that Runtime.apply sets and a new session resets. A file:L:C
column counts runes, as compilers do, and never depended on it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/mini.zig')
| -rw-r--r-- | src/mini.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mini.zig b/src/mini.zig index a6aef15a..8af64201 100644 --- a/src/mini.zig +++ b/src/mini.zig @@ -239,9 +239,9 @@ test "Mini uses display cells for tabs combining text and wide characters" { } const tabs = try generate(gpa, "\tx\n", ""); defer tabs.deinit(gpa); - const spaces = config.tab_width / 2; + const spaces = config.tab_now / 2; for (tabs.content[0..spaces]) |byte| try std.testing.expectEqual(@as(u8, ' '), byte); - try std.testing.expectEqualStrings(if (config.tab_width % 2 == 0) "⠁\n" else "⠈\n", tabs.content[spaces..]); + try std.testing.expectEqualStrings(if (config.tab_now % 2 == 0) "⠁\n" else "⠈\n", tabs.content[spaces..]); } test "Mini chooses highlighted dots over plain ink with stable color ties" { |
