[gnome-builder] clang: allow _ when matching provider activation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: allow _ when matching provider activation
- Date: Mon, 4 Sep 2017 19:58:53 +0000 (UTC)
commit e8085f17ac259b2f5334ede54b9bac6bbebbc0d2
Author: Christian Hergert <chergert redhat com>
Date: Mon Sep 4 12:58:30 2017 -0700
clang: allow _ when matching provider activation
This fixes an issue where typing gtk_| woucld cause the list to disappear.
plugins/clang/ide-clang-completion-provider.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/clang/ide-clang-completion-provider.c b/plugins/clang/ide-clang-completion-provider.c
index 5126ce2..b778003 100644
--- a/plugins/clang/ide-clang-completion-provider.c
+++ b/plugins/clang/ide-clang-completion-provider.c
@@ -172,7 +172,7 @@ ide_clang_completion_provider_match (GtkSourceCompletionProvider *provider,
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]