summaryrefslogtreecommitdiff
path: root/src/output_pane.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/output_pane.zig')
-rw-r--r--src/output_pane.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/output_pane.zig b/src/output_pane.zig
index 4535495c..64bfc630 100644
--- a/src/output_pane.zig
+++ b/src/output_pane.zig
@@ -14,6 +14,7 @@ const pardes = @import("pardes.zig");
const Pardes = pardes.Pardes;
const Pane = pardes.Pane;
const file_pane = @import("file_pane.zig");
+const config = @import("config.zig");
/// `content` is gpa-owned and adopted. The name carries `dir` so looks inside
/// the buffer resolve like anywhere else.
@@ -51,7 +52,7 @@ pub fn openHelp(p: *Pardes, id: usize, prefix: []const u8) void {
for (p.panes, 0..) |slot, i| {
const hp = slot orelse continue;
const hf = if (hp.file) |*f| f else continue;
- if (!hf.output or !std.mem.endsWith(u8, hf.path, "/+Help")) continue;
+ if (!hf.output or !std.mem.endsWith(u8, hf.path, "/" ++ config.help_buffer)) continue;
file_pane.setContent(p, hf, content);
hf.scroll = 0;
hp.cur_row = 0;
@@ -64,7 +65,7 @@ pub fn openHelp(p: *Pardes, id: usize, prefix: []const u8) void {
p.gpa.free(content);
return;
};
- const np = open(p, free, dir, "+Help", content) catch {
+ const np = open(p, free, dir, config.help_buffer, content) catch {
p.gpa.free(content);
return;
};