[gtksourceview/wip/chergert/vim: 264/363] add stubs for ci and ca
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim: 264/363] add stubs for ci and ca
- Date: Mon, 8 Nov 2021 19:53:53 +0000 (UTC)
commit a5ee552a9c61e04cf72595674262049ed2796e90
Author: Christian Hergert <chergert redhat com>
Date: Wed Nov 3 16:41:29 2021 -0700
add stubs for ci and ca
gtksourceview/vim/gtk-source-vim-normal.c | 32 +++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-normal.c b/gtksourceview/vim/gtk-source-vim-normal.c
index cb90bd33..e3502bda 100644
--- a/gtksourceview/vim/gtk-source-vim-normal.c
+++ b/gtksourceview/vim/gtk-source-vim-normal.c
@@ -652,6 +652,30 @@ key_handler_viewport (GtkSourceVimNormal *self,
return gtk_source_vim_normal_bail (self);
}
+static gboolean
+key_handler_ci (GtkSourceVimNormal *self,
+ guint keyval,
+ guint keycode,
+ GdkModifierType mods,
+ const char *string)
+{
+ g_assert (GTK_SOURCE_IS_VIM_NORMAL (self));
+
+ return gtk_source_vim_normal_bail (self);
+}
+
+static gboolean
+key_handler_ca (GtkSourceVimNormal *self,
+ guint keyval,
+ guint keycode,
+ GdkModifierType mods,
+ const char *string)
+{
+ g_assert (GTK_SOURCE_IS_VIM_NORMAL (self));
+
+ return gtk_source_vim_normal_bail (self);
+}
+
static gboolean
key_handler_c (GtkSourceVimNormal *self,
guint keyval,
@@ -671,6 +695,14 @@ key_handler_c (GtkSourceVimNormal *self,
NULL);
return TRUE;
+ case GDK_KEY_i:
+ self->handler = key_handler_ci;
+ return TRUE;
+
+ case GDK_KEY_a:
+ self->handler = key_handler_ca;
+ return TRUE;
+
default:
return gtk_source_vim_normal_bail (self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]