[gtksourceview/wip/chergert/vim] and replace mode



commit 5fe0dfeddc7ba78eeb24f1c88728a5b40010fc58
Author: Christian Hergert <chergert redhat com>
Date:   Fri Nov 5 11:44:16 2021 -0700

    and replace mode

 gtksourceview/vim/gtk-source-vim-replace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-replace.c b/gtksourceview/vim/gtk-source-vim-replace.c
index 4ed52723..b1a2a6b4 100644
--- a/gtksourceview/vim/gtk-source-vim-replace.c
+++ b/gtksourceview/vim/gtk-source-vim-replace.c
@@ -63,7 +63,8 @@ gtk_source_vim_replace_handle_keypress (GtkSourceVimState *state,
 
        g_assert (GTK_SOURCE_IS_VIM_REPLACE (self));
 
-       if (gtk_source_vim_state_is_escape (keyval, mods))
+       if (gtk_source_vim_state_is_escape (keyval, mods) ||
+           gtk_source_vim_state_is_ctrl_c (keyval, mods))
        {
                gtk_source_vim_state_pop (state);
                return TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]