[gspell] InlineCheckerTextBuffer: add FIXME comment for perf improvement



commit d17b3507c7a3003e89eb949444ac103499e62969
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Jun 25 13:46:59 2017 +0200

    InlineCheckerTextBuffer: add FIXME comment for perf improvement

 gspell/gspell-inline-checker-text-buffer.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gspell/gspell-inline-checker-text-buffer.c b/gspell/gspell-inline-checker-text-buffer.c
index 9ceec2d..410678b 100644
--- a/gspell/gspell-inline-checker-text-buffer.c
+++ b/gspell/gspell-inline-checker-text-buffer.c
@@ -306,6 +306,11 @@ check_subregion (GspellInlineCheckerTextBuffer *spell,
                                                                    &word_end_iter,
                                                                    word_end_offset);
 
+                               /* FIXME: it's a bit stupid to spell-check words
+                                * in the no-spell-check region. The relevant
+                                * word boundaries in the PangoLogAttr array
+                                * should be removed beforehand.
+                                */
                                if (should_apply_tag_to_misspelled_word (spell, &word_start_iter, 
&word_end_iter))
                                {
                                        gtk_text_buffer_apply_tag (spell->buffer,


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