[gnome-builder] vim: fix arrow keys during selections
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: fix arrow keys during selections
- Date: Fri, 9 Jan 2015 11:07:50 +0000 (UTC)
commit 019be6ad8e02ae560f911e66b812b242a516daa2
Author: Christian Hergert <christian hergert me>
Date: Fri Jan 9 03:07:39 2015 -0800
vim: fix arrow keys during selections
src/vim/gb-source-vim.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/src/vim/gb-source-vim.c b/src/vim/gb-source-vim.c
index 8fd9d44..aa6fd61 100644
--- a/src/vim/gb-source-vim.c
+++ b/src/vim/gb-source-vim.c
@@ -2915,6 +2915,30 @@ gb_source_vim_handle_normal (GbSourceVim *vim,
}
break;
+ case GDK_KEY_KP_Down:
+ case GDK_KEY_Down:
+ gb_source_vim_clear_phrase (vim);
+ gb_source_vim_move_down (vim);
+ return TRUE;
+
+ case GDK_KEY_KP_Up:
+ case GDK_KEY_Up:
+ gb_source_vim_clear_phrase (vim);
+ gb_source_vim_move_up (vim);
+ return TRUE;
+
+ case GDK_KEY_KP_Left:
+ case GDK_KEY_Left:
+ gb_source_vim_clear_phrase (vim);
+ gb_source_vim_move_backward (vim);
+ return TRUE;
+
+ case GDK_KEY_KP_Right:
+ case GDK_KEY_Right:
+ gb_source_vim_clear_phrase (vim);
+ gb_source_vim_move_forward (vim);
+ return TRUE;
+
case GDK_KEY_a:
case GDK_KEY_x:
if ((event->state & GDK_CONTROL_MASK) != 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]