summaryrefslogtreecommitdiff
path: root/src/look.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/look.zig')
-rw-r--r--src/look.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/look.zig b/src/look.zig
index 95506d9c..082565ed 100644
--- a/src/look.zig
+++ b/src/look.zig
@@ -1500,9 +1500,10 @@ pub fn lookAt(p: *Pardes, id: usize, operand_raw: []const u8) void {
var home_buf: [4096]u8 = undefined;
const stripped = std.mem.trim(u8, operand_raw, " \t\r\n");
const operand = if (stripped.len > 0 and stripped[0] == '~') filesystem.expandHome(stripped, &home_buf) else std.mem.trimEnd(u8, operand_raw, "\r\n");
- // A +History row names a dump of the state file's (`Restore <label>`,
- // then its date, size and panes): a look at it is a Restore of that
- // dump; its other words are looked as any (a path in it opens).
+ // A +History line names a dump of the state file's (`Restore <label>`;
+ // its date, size and panes are the indented line under it): a look at
+ // it is a Restore of that dump; other words are looked as any (a path
+ // in it opens).
if (isHistoryList(pane)) {
var row = std.mem.trim(u8, operand, " \t\r\n");
if (std.mem.startsWith(u8, row, "Restore ")) row = std.mem.trimStart(u8, row["Restore ".len..], " ");