[gtksourceview/wip/chergert/vim] char-pending cannot do literals
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim] char-pending cannot do literals
- Date: Wed, 3 Nov 2021 21:20:37 +0000 (UTC)
commit b5353bc6b87ac108a582bd9447cc507bf0330e79
Author: Christian Hergert <chergert redhat com>
Date: Wed Nov 3 14:19:47 2021 -0700
char-pending cannot do literals
gtksourceview/vim/gtk-source-vim-char-pending.c | 12 ------------
1 file changed, 12 deletions(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-char-pending.c b/gtksourceview/vim/gtk-source-vim-char-pending.c
index e5462f98..d8575732 100644
--- a/gtksourceview/vim/gtk-source-vim-char-pending.c
+++ b/gtksourceview/vim/gtk-source-vim-char-pending.c
@@ -31,7 +31,6 @@ struct _GtkSourceVimCharPending
GtkSourceVimState parent_class;
gunichar character;
char string[16];
- guint is_literal : 1;
};
G_DEFINE_TYPE (GtkSourceVimCharPending, gtk_source_vim_char_pending, GTK_SOURCE_TYPE_VIM_STATE)
@@ -47,22 +46,11 @@ gtk_source_vim_char_pending_handle_keypress (GtkSourceVimState *state,
g_assert (GTK_SOURCE_IS_VIM_CHAR_PENDING (self));
- /* If we haven't entered literal mode then escape should just
- * exit from char-pending.
- */
if (gtk_source_vim_state_is_escape (keyval, mods))
{
- if (self->is_literal)
- self->character = '\e';
goto completed;
}
- if (keyval == GDK_KEY_v && (mods & GDK_CONTROL_MASK) != 0)
- {
- self->is_literal = TRUE;
- return TRUE;
- }
-
gtk_source_vim_state_keyval_unescaped (keyval, mods, self->string);
if (self->string[0] != 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]