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.
master
Benno Schulenberg 2017-02-10 22:03:37 +01:00
parent 5c3d529761
commit 914af36546
1 changed files with 0 additions and 1 deletions

View File

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