[gedit/wip/spell-checking: 2/3] auto-spell: remove hack about adjusting iters at word boundaries



commit 34d581398c1e56b44cdb6932a4e3f59aa43b73fb
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Jul 17 14:17:13 2015 +0200

    auto-spell: remove hack about adjusting iters at word boundaries
    
    I've tested with " ab" as the buffer content, and the iter at offset 0
    is not inside a word. The bug seems to be fixed.

 plugins/spell/gedit-automatic-spell-checker.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/plugins/spell/gedit-automatic-spell-checker.c b/plugins/spell/gedit-automatic-spell-checker.c
index f970331..799e33c 100644
--- a/plugins/spell/gedit-automatic-spell-checker.c
+++ b/plugins/spell/gedit-automatic-spell-checker.c
@@ -140,16 +140,6 @@ check_range (GeditAutomaticSpellChecker *spell,
                                    &start_adjusted,
                                    &end_adjusted);
 
-       /* Fix a corner case when replacement occurs at beginning of buffer:
-        * An iter at offset 0 seems to always be inside a word,
-        * even if it's not.  Possibly a pango bug.
-        */
-       if (gtk_text_iter_is_start (&start_adjusted))
-       {
-               gtk_text_iter_forward_word_end (&start_adjusted);
-               gtk_text_iter_backward_word_start (&start_adjusted);
-       }
-
        word_start = start_adjusted;
 
        while (gedit_spell_utils_skip_no_spell_check (&word_start, &end_adjusted) &&


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