diff options
Diffstat (limited to 'src/Store.zig')
| -rw-r--r-- | src/Store.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Store.zig b/src/Store.zig index 64a8a7be..afe07742 100644 --- a/src/Store.zig +++ b/src/Store.zig @@ -106,7 +106,7 @@ pub fn keep(s: *Store, p: *Pardes, id: usize) ?Kept { gpa.free(owned); return null; } - const what: []const u8 = if (pane.file) |f| f.path else if (pane.pdfPath()) |pdf| pdf else if (pane.addon) |k| k.path else if (pane.command) |c| c else pane.cwdSlice(); + const what: []const u8 = if (pane.file) |f| f.path else if (pane.addon) |k| k.path else if (pane.command) |c| c else pane.cwdSlice(); var name = gpa.alloc(u8, @min(what.len, 4096)) catch { gpa.free(owned); return null; |
