[gspell] current word: ensure that a previous current word is re-checked



commit f308c65e5dfecf929fd2b09df053692761fb3798
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Mar 3 16:51:29 2016 +0100

    current word: ensure that a previous current word is re-checked
    
    With the current code, it's impossible that a previous current word is
    not re-checked, but it's better to make the code more robust.

 gspell/gspell-inline-checker-text-buffer.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gspell/gspell-inline-checker-text-buffer.c b/gspell/gspell-inline-checker-text-buffer.c
index 8210e02..fe3f9d0 100644
--- a/gspell/gspell-inline-checker-text-buffer.c
+++ b/gspell/gspell-inline-checker-text-buffer.c
@@ -353,6 +353,13 @@ check_visible_region_in_view (GspellInlineCheckerTextBuffer *spell,
                        _gspell_text_region_subtract (intersect,
                                                      &current_word_start,
                                                      &current_word_end);
+
+                       /* Be sure that the current word will be re-checked
+                        * later when it will no longer be the current word.
+                        */
+                       _gspell_text_region_add (spell->scan_region,
+                                                &current_word_start,
+                                                &current_word_end);
                }
        }
 


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