+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>
* src/proto.h, src/global.c: Remove two obsolete variables and an
unneeded extern, and regroup some stuff.
for (i = editwinrows - 2; i - skipped > 0 && openfile->current !=
openfile->fileage; i--) {
openfile->current = openfile->current->prev;
+#ifndef NANO_TINY
if (ISSET(SOFTWRAP) && openfile->current) {
skipped += strlenpt(openfile->current->data) / COLS;
#ifdef DEBUG
- fprintf(stderr, "do_page_up: i = %d, skipped = %d based on line %lu len %d\n",
- i, skipped, (unsigned long) openfile->current->lineno, strlenpt(openfile->current->data));
+ fprintf(stderr, "do_page_up: i = %d, skipped = %d based on line %ld len %lu\n",
+ i, skipped, (long)openfile->current->lineno, (unsigned long)strlenpt(openfile->current->data));
#endif
}
+#endif
}
openfile->current_x = actual_x(openfile->current->data,
#ifdef DEBUG
fprintf(stderr, "do_page_up: openfile->current->lineno = %lu, skipped = %d\n",
- (unsigned long) openfile->current->lineno, skipped);
+ (unsigned long)openfile->current->lineno, skipped);
#endif
/* Scroll the edit window up a page. */
openfile->filebot; i--) {
openfile->current = openfile->current->next;
#ifdef DEBUG
- fprintf(stderr, "do_page_down: moving to line %lu\n", (unsigned long) openfile->current->lineno);
+ fprintf(stderr, "do_page_down: moving to line %lu\n", (unsigned long)openfile->current->lineno);
#endif
}
/* Well, we might also need a full refresh if we've changed the
* line length to be a new multiple of COLS. */
if (ISSET(SOFTWRAP) && edit_refresh_needed == FALSE)
- if (strlenpt(openfile->current->data) / COLS != orig_lenpt / COLS)
+ if (strlenpt(openfile->current->data) / COLS != orig_lenpt / COLS)
edit_refresh_needed = TRUE;
#endif