diff options
Diffstat (limited to 'src/tagline.zig')
| -rw-r--r-- | src/tagline.zig | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/tagline.zig b/src/tagline.zig index 79c2c09b..7af9ba66 100644 --- a/src/tagline.zig +++ b/src/tagline.zig @@ -10,7 +10,6 @@ const edit = @import("edit.zig"); const exec = @import("exec.zig"); const config = @import("config.zig"); const pdf_enabled = panes.Pdf.enabled; -const dump = @import("dump.zig"); const Layer = @import("Layer.zig"); const Pane = panes.Pane; const Text = panes.Text; @@ -361,6 +360,7 @@ pub fn draftName(p: *Pardes, pane: *Pane, col: usize) void { const name = p.gpa.dupe(u8, f.path) catch return; pane.closePrompt(); pane.prompt = .name; + pane.prompt_view = p.view; pane.input = .{ .what = .input, .own = name, .mode = .insert, .cur_pinned = true, .cur_col = @intCast(@min(name.len, panes.File.rawAtDisplay(name, col))) }; } @@ -423,13 +423,6 @@ pub fn enterHeader(p: *Pardes, column: ?usize) void { t.normal.clear(); } -/// A dump's tag tail, what was typed after the name: a dump from 0.4 on -/// writes it, and an older one's saved tag is not read. -pub fn restoreDumpTail(p: *Pardes, pane: *Pane, src: dump.Pane) void { - const tail = src.tag_tail orelse return; - pane.tag.own = p.gpa.dupe(u8, tail) catch return; -} - /// The span a header's selection covers on line `row` of its text, in /// that line's bytes: up to the caret while typing, and over the /// cursor's own cell too in normal mode, where a cursor is a cell. |
