+2014-06-09 David Lawrence Ramsey <pooka109@gmail.com>
+ * src/*.c: Cosmetic tweaks of comments and whitespace.
+
2014-06-09 Benno Schulenberg <bensberg@justemail.net>
* src/nano.c (do_input): Remove two superfluous false conditions.
* src/nano.h, src/text.c (add_undo): Avoid a compiler warning with
return FALSE;
#if !defined(NANO_TINY) && !defined(DISABLE_NANORC)
- update_poshistory(openfile->filename, openfile->current->lineno, xplustabs()+1);
+ update_poshistory(openfile->filename, openfile->current->lineno, xplustabs() + 1);
#endif
/* Switch to the next file buffer. */
/* Return the given menu's first shortcut sequence, or the default value
* (2nd arg). Assumes currmenu for the menu to check. */
-int sc_seq_or (void (*func)(void), int defaultval)
+int sc_seq_or(void (*func)(void), int defaultval)
{
const sc *s = first_sc_for(currmenu, func);
/* If we're not in smooth scrolling mode, put the cursor at the
* beginning of the top line of the edit window, as Pico does. */
-
#ifndef NANO_TINY
if (!ISSET(SMOOTH_SCROLL)) {
#endif
#ifndef DISABLE_WRAPPING
/* Overwrite an rcfile "set nowrap" or --disable-wrapping-as-root
- if a --fill option was given on the command line. */
+ * if a --fill option was given on the command line. */
if (fill_used)
UNSET(NO_WRAP);
#endif
assert(str != NULL);
- /* Man page for strtol() says this is required, and
- it looks like it is! */
+ /* The manual page for strtol() says this is required, and
+ * it looks like it is! */
errno = 0;
j = (ssize_t)strtol(str, &first_error, 10);
#ifdef DEBUG
if (ISSET(SOFTWRAP) && strlen(converted) >= COLS - 2)
- fprintf(stderr, "update_line(): converted(1) line = %s\n", converted);
+ fprintf(stderr, "update_line(): converted(1) line = %s\n", converted);
#endif
-
/* Paint the line. */
edit_draw(fileptr, converted, line, page_start);
free(converted);
for (index += COLS; index <= full_length && line < editwinrows; index += COLS) {
line++;
#ifdef DEBUG
- fprintf(stderr, "update_line(): Softwrap code, moving to %d index %lu\n", line, (unsigned long) index);
+ fprintf(stderr, "update_line(): Softwrap code, moving to %d index %lu\n", line, (unsigned long)index);
#endif
blank_line(edit, line, 0, COLS);