[gspell] current word: queue a redraw if tag removed for the current word



commit 0f02806d9c7e06be1c3dc2b0defa9a5be16b0842
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Mar 5 14:44:39 2016 +0100

    current word: queue a redraw if tag removed for the current word

 gspell/gspell-inline-checker-text-buffer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gspell/gspell-inline-checker-text-buffer.c b/gspell/gspell-inline-checker-text-buffer.c
index 061f608..e005e96 100644
--- a/gspell/gspell-inline-checker-text-buffer.c
+++ b/gspell/gspell-inline-checker-text-buffer.c
@@ -391,7 +391,7 @@ check_visible_region_in_view (GspellInlineCheckerTextBuffer *spell,
        if (is_text_region_empty (intersect))
        {
                _gspell_text_region_destroy (intersect);
-               return;
+               goto out;
        }
 
        _gspell_text_region_get_iterator (intersect, &intersect_iter, 0);
@@ -435,6 +435,7 @@ check_visible_region_in_view (GspellInlineCheckerTextBuffer *spell,
                spell->scan_region = NULL;
        }
 
+out:
        if (view != NULL)
        {
                /* FIXME properly. Workaround for bug in GtkTextView:


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