[gtksourceview/gnome-2-30] Cancel completion when cursor and completion mark no longer match



commit 7c263bf494854030d1aefc4f9c44320dc3e05ec3
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 d124c5b..ea24b40 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -1724,7 +1724,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]