tweaks: shorten a bit of logic
Этот коммит содержится в:
родитель
87a7c2e42d
Коммит
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. */
|
/* Don't bother scrolling zero rows, nor more than the window can hold. */
|
||||||
if (nrows == 0)
|
if (nrows == 0)
|
||||||
return;
|
return;
|
||||||
if (nrows >= editwinrows)
|
if (nrows >= editwinrows) {
|
||||||
refresh_needed = TRUE;
|
refresh_needed = TRUE;
|
||||||
|
|
||||||
if (refresh_needed == TRUE)
|
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Scroll the text of the edit window a number of rows up or down. */
|
/* Scroll the text of the edit window a number of rows up or down. */
|
||||||
scrollok(edit, TRUE);
|
scrollok(edit, TRUE);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user