[gnome-builder/editor-layout] vim: ignore mark-set if we are not the focused view.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/editor-layout] vim: ignore mark-set if we are not the focused view.
- Date: Sun, 30 Nov 2014 02:20:32 +0000 (UTC)
commit 852a6b386e0fa7ef197b7d0f4439935f9a4af1e6
Author: Christian Hergert <christian hergert me>
Date: Sat Nov 29 18:20:14 2014 -0800
vim: ignore mark-set if we are not the focused view.
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 7f91c9c..5aa0d5a 100644
--- a/src/vim/gb-source-vim.c
+++ b/src/vim/gb-source-vim.c
@@ -3036,6 +3036,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]