[gnome-text-editor] spellcheck: fix invalidation region when applying checker
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] spellcheck: fix invalidation region when applying checker
- Date: Tue, 27 Sep 2022 19:24:06 +0000 (UTC)
commit 807dfa111baff243b315de695fa7c846b39b5150
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 27 12:23:39 2022 -0700
spellcheck: fix invalidation region when applying checker
src/editor-text-buffer-spell-adapter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/editor-text-buffer-spell-adapter.c b/src/editor-text-buffer-spell-adapter.c
index bd9210a..9096255 100644
--- a/src/editor-text-buffer-spell-adapter.c
+++ b/src/editor-text-buffer-spell-adapter.c
@@ -657,7 +657,7 @@ editor_text_buffer_spell_adapter_set_checker (EditorTextBufferSpellAdapter *self
if (length > 0)
{
- _cjh_text_region_remove (self->region, 0, length - 1);
+ _cjh_text_region_remove (self->region, 0, length);
_cjh_text_region_insert (self->region, 0, length, RUN_UNCHECKED);
g_assert_cmpint (length, ==, _cjh_text_region_get_length (self->region));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]