Commit 914af365 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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.
parent 5c3d5297
Showing with 0 additions and 1 deletion
+0 -1
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment