[gnome-text-editor] vim: revert to regular insert when leaving vim



commit ef20d5402eccf436585b031240d281b08633e7f5
Author: Christian Hergert <chergert redhat com>
Date:   Mon Dec 6 18:05:49 2021 -0800

    vim: revert to regular insert when leaving vim

 src/editor-page-vim.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/editor-page-vim.c b/src/editor-page-vim.c
index f37269c..ce168ef 100644
--- a/src/editor-page-vim.c
+++ b/src/editor-page-vim.c
@@ -164,6 +164,7 @@ on_keybindings_changed_cb (EditorPage *self,
         {
           gtk_widget_remove_controller (GTK_WIDGET (self->view), self->vim);
           self->vim = NULL;
+          gtk_text_view_set_overwrite (GTK_TEXT_VIEW (self->view), FALSE);
         }
     }
 }


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