[gnome-builder] completion-words: allow _ in acceptable characters for match



commit 4bd63172f45ae1896df673f7f85284ccf6b84767
Author: Christian Hergert <chergert redhat com>
Date:   Wed Nov 16 20:02:15 2016 -0800

    completion-words: allow _ in acceptable characters for match

 libide/sourceview/ide-completion-words.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/sourceview/ide-completion-words.c b/libide/sourceview/ide-completion-words.c
index 75df744..9ef2068 100644
--- a/libide/sourceview/ide-completion-words.c
+++ b/libide/sourceview/ide-completion-words.c
@@ -66,7 +66,7 @@ ide_completion_words_match (GtkSourceCompletionProvider *provider,
     {
       gunichar ch = gtk_text_iter_get_char (&iter);
 
-      if (!g_unichar_isalnum (ch))
+      if (!g_unichar_isalnum (ch) && ch != '_')
         return FALSE;
     }
 


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