diff options
Diffstat (limited to 'core/panes.zig')
| -rw-r--r-- | core/panes.zig | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/panes.zig b/core/panes.zig index d8e1bbcb..23fa3bba 100644 --- a/core/panes.zig +++ b/core/panes.zig @@ -53,6 +53,10 @@ pub const Pane = struct { return @backingInt(id); } }; + /// Del's question asked, its time not had yet: the step that asks + /// reads no clock (a far client's would wait on the session's), and + /// core time is the last frame's, seconds old in an idle session. + pub const question_asked: u64 = std.math.maxInt(u64); /// The words that throw unsaved text away (builtins.zig warnModified). pub const Discarding = enum { Exit, Restore, get, Del, Delcol }; @@ -218,7 +222,9 @@ pub const Pane = struct { repl_enter: u8 = 0, repl_enter_due_ns: u64 = 0, /// When Del's question (`del_side`) goes up on the notice band, on the - /// shell's clock (config.del_question_delay_ns after it was asked). + /// shell's clock (config.del_question_delay_ns after it was asked): + /// `question_asked` until the next advance, which counts the delay + /// from its own time (Core.advance). question_due_ns: u64 = 0, /// A question with its answers in it (`repl_choice`). question: [96]u8 = undefined, |
