diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 23:27:59 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 23:35:18 -0300 |
| commit | 383256a741117596931c4e3817491041fde5229d (patch) | |
| tree | af2ae2e868c8b514a12598c4ac7b5cd0fe2fc6f7 /src/ninep | |
| parent | 3b790a525c964f5b1dd4c1296c8291b7ecc3da22 (diff) | |
| download | pardes-383256a741117596931c4e3817491041fde5229d.tar.gz pardes-383256a741117596931c4e3817491041fde5229d.zip | |
config: look_preview_delay_frames is a u16, as its ?u16 was never null: every orelse return after it, look.zig's discarded delay, and the report's never-written Look hover delay: off line go, the tests passing the constant (pardes.zig, ninep/tree.zig and ctl.zig's test take one line each)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/ninep')
| -rw-r--r-- | src/ninep/ctl.zig | 2 | ||||
| -rw-r--r-- | src/ninep/tree.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index 4749fc94..05e13edc 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -1864,7 +1864,7 @@ test "after a ThemeFile the root ctl and DumpConfig say ThemeFile and its path, .theme_name = p.theme().name, .theme_file = pardes.colors.loadedThemeFile(p), .compiled_default_shell = config.defaultShell(), - .hover_delay_frames = null, + .hover_delay_frames = config.look_preview_delay_frames, .native_images = false, .capabilities = builtins.capabilities, .state = &p.settings, diff --git a/src/ninep/tree.zig b/src/ninep/tree.zig index bd53b6a9..6bd4e007 100644 --- a/src/ninep/tree.zig +++ b/src/ninep/tree.zig @@ -1442,7 +1442,7 @@ test "a listing read in chunks is what it was at the open, however the panes cha } test "filesystem inspection preserves pending and displayed Look hover" { - const delay = config.look_preview_delay_frames orelse return; + const delay = config.look_preview_delay_frames; const gpa = testing.allocator; const p = try withFile(gpa, "alpha beta gamma\n"); defer p.deinit(); |
