summaryrefslogtreecommitdiff
path: root/core/File.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/File.zig')
-rw-r--r--core/File.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/File.zig b/core/File.zig
index 6e44f85e..ae052344 100644
--- a/core/File.zig
+++ b/core/File.zig
@@ -756,6 +756,8 @@ fn edit(p: *Pardes, f: *State, off: usize, len: usize, bytes_in: []const u8, who
};
};
reportEdit(p, f, off, len, bytes);
+ // A pinned change's per-line values ride with the lines (jj.zig).
+ if (p.changes.items.len > 0) @import("jj.zig").edited(p, f, off, len, bytes);
if (f.mini) |*mini| mini.deinit(p.gpa);
f.mini = null;
if (f.line_starts.len > 0) shiftIndex(p.gpa, f, off, len, bytes);