diff --git a/src/winio.c b/src/winio.c index 45113220f607e5e9b7b40fd43dff738f820360c4..868686bdd1bae4d2c036fda18a82b3e6db5cec8a 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 }