Commit faa46a3c authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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.
No related merge requests found
Showing with 0 additions and 8 deletions
+0 -8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment