summaryrefslogtreecommitdiff
path: root/src/lsp/lsp_client.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:56:05 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:02:08 -0300
commit98d22582eb7305973925f3e014bde3549320fee0 (patch)
tree31e532bd4d6c4b59ef7811cf03150e722d20ea31 /src/lsp/lsp_client.zig
parent53c8d3d4c3c9673c0070eceb652326193fb32012 (diff)
downloadpardes-98d22582eb7305973925f3e014bde3549320fee0.tar.gz
pardes-98d22582eb7305973925f3e014bde3549320fee0.zip
Messages: a clock's text is one function, Message.clockText(seconds, gmtoff), which the message stamp (with localtime_r's offset) and the tape's guessed clock both call where each wrote its own, and PARDES_NOTIME is read in one place, Message.noTime, which lsp_client's hideTime asks
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/lsp/lsp_client.zig')
-rw-r--r--src/lsp/lsp_client.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lsp/lsp_client.zig b/src/lsp/lsp_client.zig
index e685aa7d..94d5bded 100644
--- a/src/lsp/lsp_client.zig
+++ b/src/lsp/lsp_client.zig
@@ -392,8 +392,7 @@ fn record(si: usize, req: lsp.Req, us: u64, rows: usize, err: []const u8) void {
}
fn hideTime() bool {
- const v = libc.getenv("PARDES_NOTIME") orelse return false;
- return std.mem.span(v).len != 0;
+ return @import("../Messages.zig").Message.noTime();
}
/// `SPC l w` narration, threaded through the real path, so it cannot