[gnome-builder] vim: ignore mark_set() if we are not the focused widget
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: ignore mark_set() if we are not the focused widget
- Date: Tue, 2 Dec 2014 04:24:27 +0000 (UTC)
commit 6114713343c0439763bba716ebd274aad197106e
Author: Christian Hergert <christian hergert me>
Date: Mon Dec 1 19:49:29 2014 -0800
vim: ignore mark_set() if we are not the focused widget
src/vim/gb-source-vim.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/vim/gb-source-vim.c b/src/vim/gb-source-vim.c
index 0490864..3b0d80d 100644
--- a/src/vim/gb-source-vim.c
+++ b/src/vim/gb-source-vim.c
@@ -3037,6 +3037,9 @@ gb_source_vim_mark_set_cb (GtkTextBuffer *buffer,
if (vim->priv->mode == GB_SOURCE_VIM_INSERT)
return;
+ if (!gtk_widget_has_focus (GTK_WIDGET (vim->priv->text_view)))
+ return;
+
if (mark != gtk_text_buffer_get_insert (buffer))
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]