summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index 151fe7b0..a63568db 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -1199,7 +1199,7 @@ test "acme placement: New and 9P's new take the bottom half of the last pane" {
try std.testing.expect(p.rects[made].y > was.y + BOX_H);
}
-test "Placement pardes brings back the old rules, and says so in Config" {
+test "Placement pardes brings back the old rules, and says so in DumpConfig" {
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 40 });
defer p.deinit();
try std.testing.expect(p.executeBuiltinLine(p.active, "Placement pardes"));
@@ -3336,7 +3336,7 @@ test "s in a header selects in the header's own text" {
var ranges: [Text.max_selections]modal.Selection = undefined;
const text = try edit.flatSurface(p, &p.global_tag);
const got = p.global_tag.ranges(text, 0, &ranges);
- try std.testing.expectEqual(@as(usize, 3), got.n); // Newcol, Joincol, NextColor
+ try std.testing.expectEqual(@as(usize, 2), got.n); // Newcol, Joincol
try std.testing.expectEqual(@as(u16, 0), pane.body.nsel);
}
@@ -4317,6 +4317,8 @@ pub const Pardes = struct {
header_column: ?usize = null,
/// A mouse sweep is extending the focused header's selection.
header_drag: bool = false,
+ /// A middle or right sweep held over a column's or the workspace's tag.
+ header_sweep: ?mouse.HeaderSweep = null,
header_scroll: usize = 0,
/// The focused header's first line on screen, which follows its caret
/// when it has more lines than rows.
@@ -5102,7 +5104,7 @@ pub const Pardes = struct {
}
/// Resolve the request already handed to the GUI host. Requested and
- /// effective tuples deliberately remain separate so Config can show both.
+ /// effective tuples deliberately remain separate so DumpConfig can show both.
pub fn acknowledgeFont(
p: *Pardes,
effective_name: []const u8,
@@ -5437,6 +5439,8 @@ pub const Pardes = struct {
const was = f.saved_revision;
const failures = p.fs.failures;
f.saved_revision = f.revision;
+ if (f.make_dirs) if (filesystem.localPath(f.path)) |local|
+ filesystem.makeDirs(std.fs.path.dirname(local) orelse "/");
p.hostWriteFile(sf.pane, f.path, f.content);
const saved_pane = p.panes[sf.pane] orelse return;
if (saved_pane.serial != serial) return;
@@ -6562,7 +6566,7 @@ pub const Pardes = struct {
}
/// A native post pass proved unavailable: the chain is emptied, which
- /// Config then reports.
+ /// DumpConfig then reports.
pub fn disableSceneEffects(p: *Pardes) void {
p.settings.post.clear();
}