[gedit-code-assistance/wip/indent] Handle amount of indent when backward checks endup with }



commit e719a68b780dc91703a0447419cea4e910651488
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Apr 9 17:09:20 2014 +0200

    Handle amount of indent when backward checks endup with }

 indentbackends/c/gca-c-backend.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/indentbackends/c/gca-c-backend.vala b/indentbackends/c/gca-c-backend.vala
index 237bd5c..dd3c741 100644
--- a/indentbackends/c/gca-c-backend.vala
+++ b/indentbackends/c/gca-c-backend.vala
@@ -190,6 +190,10 @@ class Backend : Object, Gca.IndentBackend
                        amount = get_line_indents(iter);
                        amount += get_indent_width();
                }
+               else if (c == '}')
+               {
+                       amount = get_line_indents(iter);
+               }
                else if (c == ',')
                {
                        // hello(param1,|


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