[gtksourceview/wip/chergert/vim: 218/293] simplfy
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim: 218/293] simplfy
- Date: Fri, 5 Nov 2021 04:23:05 +0000 (UTC)
commit 02e044424b9ba48dbc9c5f595b5415805b592ed2
Author: Christian Hergert <chergert redhat com>
Date: Tue Nov 2 13:50:01 2021 -0700
simplfy
gtksourceview/vim/gtk-source-vim-visual.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-visual.c b/gtksourceview/vim/gtk-source-vim-visual.c
index 8e6e5ac1..646af1fe 100644
--- a/gtksourceview/vim/gtk-source-vim-visual.c
+++ b/gtksourceview/vim/gtk-source-vim-visual.c
@@ -272,7 +272,7 @@ key_handler_register (GtkSourceVimVisual *self,
return TRUE;
}
-static void
+static gboolean
gtk_source_vim_visual_delete (GtkSourceVimVisual *self)
{
g_assert (GTK_SOURCE_IS_VIM_VISUAL (self));
@@ -287,6 +287,8 @@ gtk_source_vim_visual_delete (GtkSourceVimVisual *self)
gtk_source_vim_state_repeat (self->command);
gtk_source_vim_state_pop (GTK_SOURCE_VIM_STATE (self));
+
+ return TRUE;
}
static gboolean
@@ -307,8 +309,7 @@ key_handler_initial (GtkSourceVimVisual *self,
return TRUE;
case GDK_KEY_x:
- gtk_source_vim_visual_delete (self);
- return TRUE;
+ return gtk_source_vim_visual_delete (self);
case GDK_KEY_quotedbl:
self->handler = key_handler_register;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]