[gnome-builder] vim: fix undo
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: fix undo
- Date: Mon, 20 Oct 2014 23:36:43 +0000 (UTC)
commit 8fc3402e951f53de1f38551cf09f556f314f2123
Author: Christian Hergert <christian hergert me>
Date: Mon Oct 20 16:36:26 2014 -0700
vim: fix undo
src/vim/gb-source-vim.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/vim/gb-source-vim.c b/src/vim/gb-source-vim.c
index e9dd771..ebe00dc 100644
--- a/src/vim/gb-source-vim.c
+++ b/src/vim/gb-source-vim.c
@@ -486,12 +486,7 @@ gb_source_vim_set_mode (GbSourceVim *vim,
*/
if (mode == GB_SOURCE_VIM_INSERT)
gtk_text_buffer_begin_user_action (buffer);
-
- /*
- * If we are leaving insert mode, let's complete that user action.
- */
- if ((mode != GB_SOURCE_VIM_INSERT) &&
- (vim->priv->mode == GB_SOURCE_VIM_INSERT))
+ else if (vim->priv->mode == GB_SOURCE_VIM_INSERT)
gtk_text_buffer_end_user_action (buffer);
vim->priv->mode = mode;
@@ -2878,11 +2873,9 @@ gb_source_vim_handle_normal (GbSourceVim *vim,
gb_source_vim_clear_phrase (vim);
- gtk_text_buffer_begin_user_action (buffer);
cmd->func (vim, phrase.count, phrase.modifier);
if (cmd->flags & GB_SOURCE_VIM_COMMAND_FLAG_VISUAL)
gb_source_vim_clear_selection (vim);
- gtk_text_buffer_end_user_action (buffer);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]