summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:42:22 -0300
committerGabriel Schneider <[email protected]>2026-11-04 23:42:22 -0300
commit5a927d1a4e92750bc0d48994df2c2e552d669b01 (patch)
tree7301943c90d813a561400468967e774c39c6d376 /src/pardes.zig
parent63e6ceefc7ab33e31c9d4f83387183e44089e443 (diff)
downloadpardes-5a927d1a4e92750bc0d48994df2c2e552d669b01.tar.gz
pardes-5a927d1a4e92750bc0d48994df2c2e552d669b01.zip
exec, look: pointerOperand, isFile and langOf, one-line wrappers with one caller or four, go to their callers (pardes.zig's recentKeeps asks kindOf), as do the unused themes, BOX_H and pathUnder and look's second alias of fs.zig; missedLine and lookPdfPage take their one type, not anytype; isRecentList drops a .cmd = .Recent origin nothing makes; executeFrom's doc moves off isComment, and a comment look.zig said twice is said once
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index ba373726..aa458198 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -4466,7 +4466,7 @@ pub const Pardes = struct {
pub fn recentKeeps(path: []const u8) bool {
const local = filesystem.localPath(path) orelse return false;
if (comptime !hosted) return true;
- return exec.isFile(local);
+ return exec.kindOf(local) == .file;
}
/// A file, PDF or image pane closing: its place noted in Recent, when