[gnome-builder] snippets: remove else from C snippets



commit ec29d027a2689d96cafa93239488f7d893900403
Author: Christian Hergert <chergert redhat com>
Date:   Tue Nov 5 22:00:28 2019 -0800

    snippets: remove else from C snippets
    
    This one is really annoying for cases where you don't want brackets. And
    we already get things right when you do want brackets because you can
    just hit {, have the secondary } auto-added, and hit enter again to be
    placed in the right spot.
    
    So all in all, I think having this snippet was worse than not.

 src/plugins/snippets/snippets/c.snippets | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/plugins/snippets/snippets/c.snippets b/src/plugins/snippets/snippets/c.snippets
index df673ed62..1d3cfc4dd 100644
--- a/src/plugins/snippets/snippets/c.snippets
+++ b/src/plugins/snippets/snippets/c.snippets
@@ -23,12 +23,6 @@ snippet if
                {
                        $0
                }
-snippet else
-- scope c, chdr
-       else
-               {
-                       $0
-               }
 snippet elseif
 - scope c, chdr
 - desc else if


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