[gnome-builder/gnome-builder-3-18] snippets: fix scope parser, whose scope is missing



commit 22d3f511f6c64fd354302e99518bc84c3a616a9b
Author: Christian Hergert <christian hergert me>
Date:   Sat Oct 3 15:58:05 2015 -0700

    snippets: fix scope parser, whose scope is missing

 libide/ide-source-snippet-parser.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libide/ide-source-snippet-parser.c b/libide/ide-source-snippet-parser.c
index 76929ee..f3ce04b 100644
--- a/libide/ide-source-snippet-parser.c
+++ b/libide/ide-source-snippet-parser.c
@@ -381,14 +381,15 @@ ide_source_snippet_parser_do_snippet_scope (IdeSourceSnippetParser *parser,
       add_scope = TRUE;
       for (iter = parser->scope; iter; iter = iter->next)
         {
-          if (g_strcmp0(iter->data, scope_list[i]) == 0)
+          if (g_strcmp0 (iter->data, scope_list[i]) == 0)
+            {
               add_scope = FALSE;
               break;
+            }
         }
 
       if (add_scope)
-        parser->scope = g_list_append(parser->scope,
-                                    g_strstrip (g_strdup (scope_list[i])));
+        parser->scope = g_list_append(parser->scope, g_strstrip (g_strdup (scope_list[i])));
     }
 
   g_strfreev(scope_list);


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