[gnome-builder] ctags: allow _ as valid completion character
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] ctags: allow _ as valid completion character
- Date: Wed, 23 Nov 2016 23:38:00 +0000 (UTC)
commit 75494ae8f7a1eb29d736893e510e8422b15a2aee
Author: Christian Hergert <chergert redhat com>
Date: Wed Nov 23 15:37:23 2016 -0800
ctags: allow _ as valid completion character
This fixes the issue where the completion window disappears as you type
because the current character does not match the allowed completion
characters.
plugins/ctags/ide-ctags-completion-provider.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/ctags/ide-ctags-completion-provider.c b/plugins/ctags/ide-ctags-completion-provider.c
index 09a5b53..75a4909 100644
--- a/plugins/ctags/ide-ctags-completion-provider.c
+++ b/plugins/ctags/ide-ctags-completion-provider.c
@@ -295,7 +295,7 @@ ide_ctags_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]