summaryrefslogtreecommitdiff
path: root/src/Text.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text.zig')
-rw-r--r--src/Text.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text.zig b/src/Text.zig
index 411c2ec8..70ec5369 100644
--- a/src/Text.zig
+++ b/src/Text.zig
@@ -69,6 +69,9 @@ sticky_col: i32 = -1,
/// The insert session began with `a`: on Esc every range gives back the
/// one character it was stretched by (helix restore_cursor).
restore_cursor: bool = false,
+/// Where the last edit ended, a deletion's start or an insertion's end, in
+/// surface rows: for `g.` (helix last_edit_pos).
+last_edit: ?struct { row: i32, col: i32 } = null,
/// insert `Ctrl-r` was pressed: the next key names the register to insert
reg_wait: bool = false,
normal: modal.Normal.State = .{},