[gnome-text-editor] vim: close page on ^Wc
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] vim: close page on ^Wc
- Date: Tue, 14 Dec 2021 00:40:01 +0000 (UTC)
commit ed94243268c5d05fdf376e85036b92cb93124340
Author: Christian Hergert <chergert redhat com>
Date: Mon Dec 13 16:39:56 2021 -0800
vim: close page on ^Wc
src/editor-page-vim.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/editor-page-vim.c b/src/editor-page-vim.c
index ce168ef..c96d918 100644
--- a/src/editor-page-vim.c
+++ b/src/editor-page-vim.c
@@ -96,7 +96,9 @@ on_vim_execute_command_cb (EditorPage *self,
g_assert (EDITOR_IS_PAGE (self));
g_assert (GTK_SOURCE_IS_VIM_IM_CONTEXT (im_context));
- if (g_str_equal (command, ":q") || g_str_equal (command, ":quit"))
+ if (g_str_equal (command, ":q") ||
+ g_str_equal (command, ":quit") ||
+ g_str_equal (command, "^Wc"))
{
editor_session_remove_page (EDITOR_SESSION_DEFAULT, self);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]