[gnome-builder] vim: extend selection in visual mode with page up/down
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: extend selection in visual mode with page up/down
- Date: Fri, 9 Jan 2015 11:21:01 +0000 (UTC)
commit 8e4fa62ba813d64d5ad357416082b0ad65836676
Author: Christian Hergert <christian hergert me>
Date: Fri Jan 9 03:20:55 2015 -0800
vim: extend selection in visual mode with page up/down
src/vim/gb-source-vim.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/vim/gb-source-vim.c b/src/vim/gb-source-vim.c
index aa6fd61..f17db3d 100644
--- a/src/vim/gb-source-vim.c
+++ b/src/vim/gb-source-vim.c
@@ -2895,6 +2895,18 @@ gb_source_vim_handle_normal (GbSourceVim *vim,
gb_source_vim_clear_phrase (vim);
return TRUE;
+ case GDK_KEY_Page_Up:
+ case GDK_KEY_KP_Page_Up:
+ gb_source_vim_clear_phrase (vim);
+ gb_source_vim_move_page (vim, GB_SOURCE_VIM_PAGE_UP);
+ return TRUE;
+
+ case GDK_KEY_Page_Down:
+ case GDK_KEY_KP_Page_Down:
+ gb_source_vim_clear_phrase (vim);
+ gb_source_vim_move_page (vim, GB_SOURCE_VIM_PAGE_DOWN);
+ return TRUE;
+
case GDK_KEY_KP_Enter:
case GDK_KEY_Return:
gb_source_vim_clear_phrase (vim);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]