Commit 58faff50 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: shorten a bit of logic

No related merge requests found
Showing with 2 additions and 3 deletions
+2 -3
......@@ -2889,11 +2889,10 @@ void edit_scroll(scroll_dir direction, int nrows)
/* Don't bother scrolling zero rows, nor more than the window can hold. */
if (nrows == 0)
return;
if (nrows >= editwinrows)
if (nrows >= editwinrows) {
refresh_needed = TRUE;
if (refresh_needed == TRUE)
return;
}
/* Scroll the text of the edit window a number of rows up or down. */
scrollok(edit, TRUE);
......
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