diff --git a/src/winio.c b/src/winio.c index 45113220..868686bd 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2959,6 +2959,9 @@ void ensure_firstcolumn_is_aligned(void) #ifndef NANO_TINY if (openfile->firstcolumn % editwincols != 0) openfile->firstcolumn -= (openfile->firstcolumn % editwincols); + + /* If smooth scrolling is on, make sure the viewport doesn't center. */ + focusing = FALSE; #endif }