diff --git a/src/tui/mode/input/vim/insert.zig b/src/tui/mode/input/vim/insert.zig index 6407b68..5460625 100644 --- a/src/tui/mode/input/vim/insert.zig +++ b/src/tui/mode/input/vim/insert.zig @@ -102,22 +102,22 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void { //chording if (self.last_key.keypress == 'j' and self.last_key.modifiers == 0 and keypress == 'k' and modifiers == 0) { - try self.cmd("delete_backward", .{}); + try self.cmd("undo", .{}); try self.cmd("enter_mode", command.fmt(.{"vim/normal"})); return; } if (self.last_key.keypress == 'k' and self.last_key.modifiers == 0 and keypress == 'j' and modifiers == 0) { - try self.cmd("delete_backward", .{}); + try self.cmd("undo", .{}); try self.cmd("enter_mode", command.fmt(.{"vim/normal"})); return; } if (self.last_key.keypress == 'f' and self.last_key.modifiers == 0 and keypress == 'j' and modifiers == 0) { - try self.cmd("delete_backward", .{}); + try self.cmd("undo", .{}); try self.cmd("enter_mode", command.fmt(.{"vim/normal"})); return; } if (self.last_key.keypress == 'j' and self.last_key.modifiers == 0 and keypress == 'f' and modifiers == 0) { - try self.cmd("delete_backward", .{}); + try self.cmd("undo", .{}); try self.cmd("enter_mode", command.fmt(.{"vim/normal"})); return; }