[gnome-builder/wip/libide-merge: 6/35] vim: fix undo/redo replay a bit
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide-merge: 6/35] vim: fix undo/redo replay a bit
- Date: Thu, 19 Mar 2015 08:55:03 +0000 (UTC)
commit 825a7d7d7298bca4044472271fd214aee8ec2a70
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 18 15:19:46 2015 -0700
vim: fix undo/redo replay a bit
data/keybindings/vim.css | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index c82ef11..675d6d5 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -309,12 +309,16 @@
"clear-count" () };
/* undo - todo: how do we land cursor on right spot? */
- bind "u" { "undo" ()
+ bind "u" { "end-user-action" ()
+ "undo" ()
+ "begin-user-action" ()
"clear-count" ()
- "clear-selection" () };
+ "clear-selection" ()};
/* redo */
- bind "<ctrl>r" { "redo" ()
+ bind "<ctrl>r" { "end-user-action" ()
+ "redo" ()
+ "begin-user-action" ()
"clear-count" ()
"clear-selection" () };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]