[gedit-code-assistance] Highlight SourceRange inclusive



commit 08f9819fc844ef9e9f5c36a12371aa58cd9cb992
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Tue Nov 12 11:56:55 2013 +0100

    Highlight SourceRange inclusive

 src/gca-source-range.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gca-source-range.vala b/src/gca-source-range.vala
index 3fef9bb..d21d405 100644
--- a/src/gca-source-range.vala
+++ b/src/gca-source-range.vala
@@ -65,6 +65,11 @@ public struct SourceRange
                rets = this.start.get_iter(buffer, out start);
                rete = this.end.get_iter(buffer, out end);
 
+               if (rete && !end.ends_line())
+               {
+                       end.forward_char();
+               }
+
                return rets && rete;
        }
 


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