[gtksourceview] Check if the current iter is the end of the word



commit 88efd47c6153eabb7f9e6e8d96e6869c53e6358b
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Nov 8 15:35:22 2009 +0100

    Check if the current iter is the end of the word

 .../words/gtksourcecompletionwordsutils.c          |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.c b/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.c
index bf1424e..afed1a2 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.c
@@ -73,13 +73,13 @@ gtk_source_completion_words_utils_forward_word_end (GtkTextIter    *iter,
 			break;
 		}
 		
-		gtk_text_iter_forward_char (iter);
-		
 		/* Check if the next character is a valid word character */
 		if (!valid (gtk_text_iter_get_char (iter), data))
 		{
 			break;
 		}
+		
+		gtk_text_iter_forward_char (iter);
 	}
 	
 	return TRUE;



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