1
1

in edit_scroll(), fix problem where the screen wouldn't be updated

properly if you paged up with the first line of the file onscreen and
the mark on


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4170 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
David Lawrence Ramsey 2007-09-16 16:53:20 +00:00
родитель cd7a313f23
Коммит 1072fce453
2 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -1,3 +1,9 @@
2007-09-16 David Lawrence Ramsey <pooka109@gmail.com>
* winio.c (edit_scroll): Fix problem where the screen wouldn't
be updated properly if you paged up with the first line of the
file onscreen and the mark on.
2007-08-26 David Lawrence Ramsey <pooka109@gmail.com>
* doc/faq.html: Update links to the Free Translation Project.

Просмотреть файл

@ -2915,12 +2915,10 @@ void edit_scroll(scroll_dir direction, ssize_t nlines)
/* Don't bother scrolling zero lines or more than the number of
* lines in the edit window minus one; in both cases, get out, and
* in the latter case, call edit_refresh() beforehand. */
if (nlines == 0)
return;
if (nlines >= editwinrows) {
edit_refresh();
* call edit_refresh() beforehand if we need to. */
if (nlines == 0 || nlines >= editwinrows) {
if (do_redraw || nlines >= editwinrows)
edit_refresh();
return;
}