[gtksourceview] Cancel completion when cursor and completion mark no longer match



commit f69659fc8cd09a517bc10149a4ae8154a75d0836
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun May 16 16:26:16 2010 +0200

    Cancel completion when cursor and completion mark no longer match

 gtksourceview/gtksourcecompletion.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index a07209e..2c96fa8 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -1728,7 +1728,7 @@ buffer_mark_set_cb (GtkTextBuffer       *buffer,
 	gtk_source_completion_context_get_iter (completion->priv->context,
 	                                        &it);
 	
-	if (gtk_text_iter_get_line (iter) != gtk_text_iter_get_line (&it))
+	if (!gtk_text_iter_equal (iter, &it))
 	{
 		gtk_source_completion_hide (completion);
 		return;



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