[gnome-builder] snippets: look for last occurrence of _ for instance name.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] snippets: look for last occurrence of _ for instance name.
- Date: Wed, 10 Sep 2014 10:06:27 +0000 (UTC)
commit 4991f976d22285c477ce96c1fb1e294f433029dd
Author: Christian Hergert <christian hergert me>
Date: Wed Sep 10 03:02:51 2014 -0700
snippets: look for last occurrence of _ for instance name.
src/editor/gb-source-snippet-context.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/editor/gb-source-snippet-context.c b/src/editor/gb-source-snippet-context.c
index 55db1f6..0237e25 100644
--- a/src/editor/gb-source-snippet-context.c
+++ b/src/editor/gb-source-snippet-context.c
@@ -344,7 +344,7 @@ filter_instance (const gchar *input)
input = funct;
}
- if ((tmp = strchr (input, '_')))
+ if ((tmp = strrchr (input, '_')))
ret = g_strdup (tmp+1);
else
ret = g_strdup (input);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]