[gtksourceview/wip/chergert/vim: 30/73] use jump table for literal mode
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim: 30/73] use jump table for literal mode
- Date: Tue, 26 Oct 2021 23:20:36 +0000 (UTC)
commit 7fc1bf325c89c6b9b94267396b63c240c8bcc0e8
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 22 10:56:13 2021 -0700
use jump table for literal mode
gtksourceview/vim/gtk-source-vim-insert.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-insert.c b/gtksourceview/vim/gtk-source-vim-insert.c
index 88bda230..cdc657dd 100644
--- a/gtksourceview/vim/gtk-source-vim-insert.c
+++ b/gtksourceview/vim/gtk-source-vim-insert.c
@@ -94,12 +94,6 @@ gtk_source_vim_insert_handle_event (GtkSourceVimState *state,
return TRUE;
}
- if (keyval == GDK_KEY_v && (mods & GDK_CONTROL_MASK) != 0)
- {
- gtk_source_vim_state_push (state, gtk_source_vim_insert_literal_new ());
- return TRUE;
- }
-
/* Now handle our commands */
if ((mods & GDK_CONTROL_MASK) != 0)
{
@@ -108,6 +102,10 @@ gtk_source_vim_insert_handle_event (GtkSourceVimState *state,
case GDK_KEY_u:
return clear_to_first_char (self);
+ case GDK_KEY_v:
+ gtk_source_vim_state_push (state, gtk_source_vim_insert_literal_new ());
+ return TRUE;
+
default:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]