nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 0cc3da5d5e90ca1ee02571d1ec5759c6bb4a1f3f
parent b7f11363426182dd5b3e54a564509b7de18164de
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sat, 14 May 2016 11:53:52 +0200

spelling: retreat one x position, to not miss the first word

This fixes https://savannah.gnu.org/bugs/?47932.

Diffstat:
Msrc/text.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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