diff --git a/build.zig.zon b/build.zig.zon index 989525d..21b357c 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -18,8 +18,8 @@ .hash = "dizzy-1.0.0-q40X4YCRAAAGYO9QOZiYYSOwiiFlqZlecMuQcxPiBcXM", }, .thespian = .{ - .url = "git+https://github.com/neurocyte/thespian?ref=master#fb9207d22537f2940748c3e110b51be44296120e", - .hash = "thespian-0.0.1-owFOjtseBgA9KTb5dsA3KMcKj6sbXskYs3hxjHs4z3ub", + .url = "git+https://github.com/neurocyte/thespian?ref=master#25b10b6b5b23e6e44cbcaebbd107f117ed51d0d4", + .hash = "thespian-0.0.1-owFOjp0eBgCt6bQHckPIQBouw4ivKXhV9TY8T-uvu4Op", }, .themes = .{ .url = "https://github.com/neurocyte/flow-themes/releases/download/master-952f9f630ea9544088fd30293666ee0650b7a690/flow-themes.tar.gz", diff --git a/src/buffer/Buffer.zig b/src/buffer/Buffer.zig index 2188f1d..01222fc 100644 --- a/src/buffer/Buffer.zig +++ b/src/buffer/Buffer.zig @@ -1027,6 +1027,8 @@ const Node = union(enum) { .writer = .{ .vtable = &.{ .drain = Ctx.drain, + .flush = std.Io.Writer.noopFlush, + .rebase = std.Io.Writer.failingRebase, }, .buffer = &.{}, }, diff --git a/src/tui/editor.zig b/src/tui/editor.zig index 8802baf..cc67bcd 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -5755,7 +5755,7 @@ pub const Editor = struct { defer args.deinit(); try cbor.writeArrayHeader(&args.writer, fmtr.len); for (fmtr) |arg| try cbor.writeValue(&args.writer, arg); - try self.filter_cmd(.{ .buf = args.written() }); + try self.filter_cmd(.{ .buf = try args.toOwnedSlice() }); return; } return tp.exit("no formatter"); @@ -5779,7 +5779,7 @@ pub const Editor = struct { try expand_selection_to_all(root, &sel_, self.metrics); break :val sel_; }; - const reversed = sel.is_reversed(); + const reversed = sel.begin.right_of(sel.end); sel.normalize(); self.filter_ = .{ .before_root = root,