summaryrefslogtreecommitdiff
path: root/src/file_pane.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_pane.zig')
-rw-r--r--src/file_pane.zig1
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