From 6a43880a7ef6899f0d66c1b0a63a7e7b5610236a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 3 Aug 2026 00:32:11 -0300 Subject: pipe selections through shell commands --- src/file_pane.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/file_pane.zig') diff --git a/src/file_pane.zig b/src/file_pane.zig index b164a7b3..2f2a0acb 100644 --- a/src/file_pane.zig +++ b/src/file_pane.zig @@ -94,6 +94,7 @@ pub fn open(p: *Pardes, id: usize, path: []const u8, line: usize) !*Pane { pub fn setContent(p: *Pardes, f: *File, new: []u8) void { p.gpa.free(f.content); f.content = new; + f.revision +%= 1; if (f.line_starts.len > 0) p.gpa.free(f.line_starts); f.line_starts = &.{}; // the highlights go too, and not just because they are stale: their byte -- cgit v1.3