summaryrefslogtreecommitdiff
path: root/src/mini.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-23 10:56:33 -0300
committerGabriel Schneider <[email protected]>2026-10-23 17:10:58 -0300
commita0d367b6c54ff29737662fd7cf5a78d4d183cb20 (patch)
tree295dfa438f54b72a907d2c847784d5b5982fca9e /src/mini.zig
parent7b743fcc7d568f13512a59089c5214bb6fa3282f (diff)
downloadpardes-a0d367b6c54ff29737662fd7cf5a78d4d183cb20.tar.gz
pardes-a0d367b6c54ff29737662fd7cf5a78d4d183cb20.zip
Audit (core, modal): goto/insert/select tables, edit through sam.Op and sam.apply, Turn.bump and awaitPast, dead helpers out
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/mini.zig')
-rw-r--r--src/mini.zig6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mini.zig b/src/mini.zig
index 8d8ea0b2..9f7d865d 100644
--- a/src/mini.zig
+++ b/src/mini.zig
@@ -52,11 +52,7 @@ const Row = struct {
// unreachable below: `generate` refuses a source that is no UTF-8
const n = std.unicode.utf8ByteSequenceLength(grapheme[0]) catch unreachable;
const cp = std.unicode.utf8Decode(grapheme[0..n]) catch unreachable;
- const blank = switch (cp) {
- '\t'...'\r', ' ', 0x85, 0xa0, 0x1680, 0x2000...0x200a, 0x2028, 0x2029, 0x202f, 0x205f, 0x3000 => true,
- else => false,
- };
- row.ink = !blank or grapheme.len != n;
+ row.ink = !modal.isUnicodeWhitespace(cp) or grapheme.len != n;
row.color = if (styles.len == 0) 0 else styles[row.base + row.at];
row.at = end;
}