nano

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

commit 914af36546bc5105e41ae263a837d2bfa51d1952
parent 5c3d529761be36f4d4758f84ca0ac0153a2eb248
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri, 10 Feb 2017 22:03:37 +0100

spelling: don't unnecessarily fiddle with the viewport

If we're somewhere deep into the file and do a spell check, and the
first misspelled word happens to be right there, onscreen already,
then this word does not need to be centered -- it /should/ not be
centered.  We should scroll only when necessary.

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

diff --git a/src/text.c b/src/text.c @@ -2650,7 +2650,6 @@ bool do_int_spell_fix(const char *word) #endif /* Otherwise, start from the top of the file. */ { - openfile->edittop = openfile->fileage; openfile->current = openfile->fileage; openfile->current_x = 0; }