tweaks: shorten a bit of logic
parent
87a7c2e42d
commit
58faff50ae
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue