[gtksourceview/wip/chergert/gsv-gtk4] words: fix usage of g_utf8_strlen()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4] words: fix usage of g_utf8_strlen()
- Date: Sun, 30 Aug 2020 21:39:45 +0000 (UTC)
commit d3f60a4a2f46e561d3748418bc95e20ea21a30b8
Author: Christian Hergert <chergert redhat com>
Date: Sun Aug 30 14:38:38 2020 -0700
words: fix usage of g_utf8_strlen()
gtksourceview/completion-providers/words/gtksourcecompletionwords.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
index 33a7657ed..be268eea7 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
@@ -231,7 +231,7 @@ gtk_source_completion_words_populate_async (GtkSourceCompletionProvider *provide
populate->context = g_object_ref (context);
populate->activation = activation;
populate->word = g_steal_pointer (&word);
- populate->word_len = g_utf8_strlen (word, -1);
+ populate->word_len = g_utf8_strlen (populate->word, -1);
populate->ret = g_list_store_new (GTK_SOURCE_TYPE_COMPLETION_PROPOSAL);
g_task_set_task_data (task, populate, (GDestroyNotify)populate_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]