[gtksourceview/wip/chergert/vim: 77/293] handle z separately
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim: 77/293] handle z separately
- Date: Fri, 5 Nov 2021 04:22:58 +0000 (UTC)
commit aaefd5e46a68779fde8d345e4d3f21d39b5e05b6
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]