From 0cc3da5d5e90ca1ee02571d1ec5759c6bb4a1f3f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Sat, 14 May 2016 11:53:52 +0200 Subject: [PATCH] spelling: retreat one x position, to not miss the first word This fixes https://savannah.gnu.org/bugs/?47932. --- src/text.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/text.c b/src/text.c index 95290108..46b34c51 100644 --- a/src/text.c +++ b/src/text.c @@ -2399,7 +2399,8 @@ bool do_int_spell_fix(const char *word) openfile->current_x = (size_t)(top_x - 1); openfile->mark_begin = bot; openfile->mark_begin_x = bot_x; - } + } else + openfile->current_x = (size_t)(openfile->current_x - 1); openfile->mark_set = FALSE; } else #endif -- GitLab