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
parent
5c3d529761
commit
914af36546
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue