From 9d5ee166141db9f63df95df200f6c476721b0f0f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Thu, 20 Oct 2016 21:18:17 +0200 Subject: [PATCH] tweaks: don't bother redrawing some lines when whole screen will be redrawn --- src/winio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/winio.c b/src/winio.c index ef187872..7c691fc0 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2901,6 +2901,7 @@ void edit_redraw(filestruct *old_current) openfile->current->lineno < openfile->edittop->lineno) { adjust_viewport((focusing || !ISSET(SMOOTH_SCROLL)) ? CENTERING : FLOWING); refresh_needed = TRUE; + return; } #ifndef NANO_TINY -- GitLab