The amount to scroll is never zero, so there is no need to check.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5660 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
818a39cfb9
commit
9d8c72951f
|
@ -1,6 +1,7 @@
|
||||||
2016-02-22 Benno Schulenberg <bensberg@justemail.net>
|
2016-02-22 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/nano.c (free_openfilestruct): Elide this function.
|
* src/nano.c (free_openfilestruct): Elide this function.
|
||||||
* scr/global.c (thanks_for_all_the_fish, free_list_item): Condense.
|
* scr/global.c (thanks_for_all_the_fish, free_list_item): Condense.
|
||||||
|
* src/winio.c (edit_scroll): The amount to scroll is never zero.
|
||||||
|
|
||||||
2016-02-21 Benno Schulenberg <bensberg@justemail.net>
|
2016-02-21 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/files.c (input_tab): If the first Tab added the part that all
|
* src/files.c (input_tab): If the first Tab added the part that all
|
||||||
|
|
|
@ -2848,9 +2848,7 @@ void edit_scroll(scroll_dir direction, ssize_t nlines)
|
||||||
filestruct *foo;
|
filestruct *foo;
|
||||||
bool do_redraw = need_screen_update(0);
|
bool do_redraw = need_screen_update(0);
|
||||||
|
|
||||||
/* Don't bother scrolling less than one line. */
|
assert(nlines > 0);
|
||||||
if (nlines < 1)
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Part 1: nlines is the number of lines we're going to scroll the
|
/* Part 1: nlines is the number of lines we're going to scroll the
|
||||||
* text of the edit window. */
|
* text of the edit window. */
|
||||||
|
|
Loading…
Reference in New Issue