[gtksourceview/wip/chergert/vim: 22/73] clear on parse failure
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim: 22/73] clear on parse failure
- Date: Tue, 26 Oct 2021 23:20:36 +0000 (UTC)
commit 321effa6654267c8fbbd9ed8d2cd261cd238579e
Author: Christian Hergert <chergert redhat com>
Date: Thu Oct 21 16:39:21 2021 -0700
clear on parse failure
gtksourceview/vim/gtk-source-vim-normal.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-normal.c b/gtksourceview/vim/gtk-source-vim-normal.c
index 7ce4b178..eeb9efb5 100644
--- a/gtksourceview/vim/gtk-source-vim-normal.c
+++ b/gtksourceview/vim/gtk-source-vim-normal.c
@@ -434,10 +434,13 @@ key_handler_initial (GtkSourceVimNormal *self,
}
}
- if (self->handler != key_handler_initial)
- return self->handler (self, keyval, keycode, mods, string);
+ if (self->handler == key_handler_initial)
+ {
+ gtk_source_vim_normal_clear (self);
+ return FALSE;
+ }
- return FALSE;
+ return self->handler (self, keyval, keycode, mods, string);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]