diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-03 00:32:11 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | 6a43880a7ef6899f0d66c1b0a63a7e7b5610236a (patch) | |
| tree | 2fc12106e0b5f0eb0abcaa345eaa85b39b5bcdd7 /src/file_pane.zig | |
| parent | c86d3bb210822b3128a0759533f1bec3654364b7 (diff) | |
| download | pardes-6a43880a7ef6899f0d66c1b0a63a7e7b5610236a.tar.gz pardes-6a43880a7ef6899f0d66c1b0a63a7e7b5610236a.zip | |
pipe selections through shell commands
Diffstat (limited to 'src/file_pane.zig')
| -rw-r--r-- | src/file_pane.zig | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
