From 503654e60ea42f5f12a01d1fdba7f63eb85431f0 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Tue, 12 Apr 2016 14:00:36 +0200
Subject: [PATCH] screen: don't redraw some lines when doing a full refresh
 anyway

When in softwrap mode and scrolling down a line, and thus going to
do a full refresh, get out and don't bother redrawing the current
and prior lines first.
---
 src/move.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/move.c b/src/move.c
index e3d43df4..21bb3262 100644
--- a/src/move.c
+++ b/src/move.c
@@ -493,8 +493,11 @@ void do_down(
 		(ISSET(SMOOTH_SCROLL) || scroll_only) ? amount :
 #endif
 		editwinrows / 2 + 1);
-	if (ISSET(SOFTWRAP))
+
+	if (ISSET(SOFTWRAP)) {
 	    edit_refresh_needed = TRUE;
+	    return;
+	}
     }
 
     /* If we're not on the last line of the edit window, and the target
-- 
GitLab