[gnome-builder/wip/libide] 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] vim: fix undo/redo replay a bit
- Date: Wed, 18 Mar 2015 22:22:06 +0000 (UTC)
commit 08a2a57aab12a95237d2b6ea53b4a992b79f935d
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]