Miscellaneous whitespace fixes, one type fix, and one more #ifdef NANO_TINY.
Patch by David Lawrence Ramsey. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5004 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
3060ce36d3
Коммит
f80dcb2b25
@ -1,3 +1,7 @@
|
|||||||
|
2014-06-21 David Lawrence Ramsey <pooka109@gmail.com>
|
||||||
|
* src/move.c, src/nano.c: Miscellaneous whitespace fixes, one
|
||||||
|
type fix, and one more #ifdef NANO_TINY.
|
||||||
|
|
||||||
2014-06-20 Benno Schulenberg <bensberg@justemail.net>
|
2014-06-20 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/proto.h, src/global.c: Remove two obsolete variables and an
|
* src/proto.h, src/global.c: Remove two obsolete variables and an
|
||||||
unneeded extern, and regroup some stuff.
|
unneeded extern, and regroup some stuff.
|
||||||
|
@ -78,13 +78,15 @@ void do_page_up(void)
|
|||||||
for (i = editwinrows - 2; i - skipped > 0 && openfile->current !=
|
for (i = editwinrows - 2; i - skipped > 0 && openfile->current !=
|
||||||
openfile->fileage; i--) {
|
openfile->fileage; i--) {
|
||||||
openfile->current = openfile->current->prev;
|
openfile->current = openfile->current->prev;
|
||||||
|
#ifndef NANO_TINY
|
||||||
if (ISSET(SOFTWRAP) && openfile->current) {
|
if (ISSET(SOFTWRAP) && openfile->current) {
|
||||||
skipped += strlenpt(openfile->current->data) / COLS;
|
skipped += strlenpt(openfile->current->data) / COLS;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "do_page_up: i = %d, skipped = %d based on line %lu len %d\n",
|
fprintf(stderr, "do_page_up: i = %d, skipped = %d based on line %ld len %lu\n",
|
||||||
i, skipped, (unsigned long) openfile->current->lineno, strlenpt(openfile->current->data));
|
i, skipped, (long)openfile->current->lineno, (unsigned long)strlenpt(openfile->current->data));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
openfile->current_x = actual_x(openfile->current->data,
|
openfile->current_x = actual_x(openfile->current->data,
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user