[gtef] iter: fix bug in gtef_iter_get_line_indentation()



commit 575719e4319fef63d959559b221b17a733ad888d
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Apr 21 12:52:13 2017 +0200

    iter: fix bug in gtef_iter_get_line_indentation()
    
    gtef_iter_get_line_indentation() returned newlines, which caused this
    bug in LaTeXila:
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781535

 gtef/gtef-iter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtef/gtef-iter.c b/gtef/gtef-iter.c
index 0461921..0c408bb 100644
--- a/gtef/gtef-iter.c
+++ b/gtef/gtef-iter.c
@@ -1,7 +1,7 @@
 /*
  * This file is part of Gtef, a text editor library.
  *
- * Copyright 2016 - Sébastien Wilmet <swilmet gnome org>
+ * Copyright 2016, 2017 - Sébastien Wilmet <swilmet gnome org>
  *
  * Gtef is free software; you can redistribute it and/or modify it under
  * the terms of the GNU Lesser General Public License as published by the
@@ -43,7 +43,7 @@ get_leading_spaces_end_boundary (const GtkTextIter *iter,
        *leading_end = *iter;
        gtk_text_iter_set_line_offset (leading_end, 0);
 
-       while (!gtk_text_iter_is_end (leading_end))
+       while (!gtk_text_iter_ends_line (leading_end))
        {
                gunichar ch = gtk_text_iter_get_char (leading_end);
 


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