commit faa46a3c71724a81c7df25ca88b28dfce89e65ff
parent 03b168d0e389cabb07fd25eb0e3aa10d5cd00fa5
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Tue, 26 Jul 2016 21:15:28 +0200
screen: remove redundant redrawings of the entire edit window
(It may have been necessary in the past; there is no need for it now.)
This fixes https://savannah.gnu.org/bugs/?48633.
Diffstat:
1 file changed, 0 insertions(+), 8 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -2703,14 +2703,6 @@ void edit_scroll(scroll_dir direction, ssize_t nlines)
/* Part 2: nlines is the number of lines in the scrolled region of
* the edit window that we need to draw. */
- /* If the top or bottom line of the file is now visible in the edit
- * window, we need to draw the entire edit window. */
- if ((direction == UPWARD && openfile->edittop ==
- openfile->fileage) || (direction == DOWNWARD &&
- openfile->edittop->lineno + editwinrows - 1 >=
- openfile->filebot->lineno))
- nlines = editwinrows;
-
/* If the scrolled region contains only one line, and the line
* before it is visible in the edit window, we need to draw it too.
* If the scrolled region contains more than one line, and the lines