summaryrefslogtreecommitdiff
path: root/src/normal.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.zig')
-rw-r--r--src/normal.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/normal.zig b/src/normal.zig
index bc450581..228c9c39 100644
--- a/src/normal.zig
+++ b/src/normal.zig
@@ -460,6 +460,10 @@ fn executeNormalAction(p: *Pardes, t: *Text, semantic: modal.Normal.Action) void
.view_top => return t.gotoWindow(text, range, .top, go.count),
.view_center => return t.gotoWindow(text, range, .center, go.count),
.view_bottom => return t.gotoWindow(text, range, .bottom, go.count),
+ .last_modification => {
+ const at = t.last_edit orelse return;
+ return t.pointMove(text, range, modal.offsetAt(text, .{ .row = @intCast(@max(0, at.row)), .col = @intCast(@max(0, at.col)) }));
+ },
},
.view => |view| if (t.what == .body) switch (view) {
.top => {