[gedit-code-assistance/wip/indent] Swap checks to not delete newlines



commit 87e0f656a570a04376787ea7e419f66bf1e35f2a
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Apr 8 20:50:38 2014 +0200

    Swap checks to not delete newlines

 src/gca-view.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gca-view.vala b/src/gca-view.vala
index bca9c57..34034f2 100644
--- a/src/gca-view.vala
+++ b/src/gca-view.vala
@@ -387,7 +387,7 @@ class View : Object
                        var c = end.get_char();
                        while (c.isspace())
                        {
-                               if (!end.forward_char() || end.ends_line())
+                               if (end.ends_line() || !end.forward_char())
                                {
                                        break;
                                }


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