From 98d22582eb7305973925f3e014bde3549320fee0 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:56:05 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/lsp/lsp_client.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lsp') 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 -- cgit v1.3