[gnome-builder] libide: be more careful about cursor position after indent/unindent
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: be more careful about cursor position after indent/unindent
- Date: Tue, 24 Mar 2015 00:13:09 +0000 (UTC)
commit b0dc52e4ca1a517b171027d2a769999ed04ed06c
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 11 22:48:03 2015 -0700
libide: be more careful about cursor position after indent/unindent
data/keybindings/vim.css | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 02560ce..f078f93 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -965,13 +965,19 @@
bind "parenright" { "movement" (sentence-end, 1, 1, 1)
"movement" (last-char, 1, 1, 0) };
- bind "greater" { "indent-selection" (1)
+ bind "greater" { "save-insert-mark" ()
+ "indent-selection" (1)
"clear-selection" ()
"movement" (first-nonspace-char, 0, 1, 0)
+ "restore-insert-mark" ()
+ "movement" (first-nonspace-char, 0, 1, 0)
"set-mode" ("vim-normal", permanent) };
- bind "less" { "indent-selection" (-1)
+ bind "less" { "save-insert-mark" ()
+ "indent-selection" (-1)
"clear-selection" ()
"movement" (first-nonspace-char, 0, 1, 0)
+ "restore-insert-mark" ()
+ "movement" (first-nonspace-char, 0, 1, 0)
"set-mode" ("vim-normal", permanent) };
bind "<ctrl>e" { "movement" (screen-up, 1, 0, 1) };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]