[gtksourceview/wip/chergert/vim] handle z separately
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim] handle z separately
- Date: Tue, 26 Oct 2021 23:56:21 +0000 (UTC)
commit ec0aa2a8b550d7fc7cc6ede5400901e6507902bc
Author: Christian Hergert <chergert redhat com>
Date: Tue Oct 26 16:37:43 2021 -0700
handle z separately
gtksourceview/vim/gtk-source-vim-normal.c | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-normal.c b/gtksourceview/vim/gtk-source-vim-normal.c
index 4cc02743..5125229f 100644
--- a/gtksourceview/vim/gtk-source-vim-normal.c
+++ b/gtksourceview/vim/gtk-source-vim-normal.c
@@ -234,16 +234,6 @@ key_handler_viewport (GtkSourceVimNormal *self,
}
}
- switch (keyval)
- {
- case GDK_KEY_z:
- self->handler = key_handler_z;
- return TRUE;
-
- default:
- break;
- }
-
return gtk_source_vim_normal_bail (self);
}
@@ -584,8 +574,8 @@ key_handler_initial (GtkSourceVimNormal *self,
return TRUE;
case GDK_KEY_z:
- self->handler = key_handler_viewport;
- break;
+ self->handler = key_handler_z;
+ return TRUE;
case GDK_KEY_greater:
case GDK_KEY_less:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]