A few cosmetic tweaks of comments and whitespace.
Patch by David Lawrence Ramsey. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4948 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
c35eb5a16e
commit
505125e259
|
@ -1,3 +1,6 @@
|
||||||
|
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>
|
2014-06-09 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/nano.c (do_input): Remove two superfluous false conditions.
|
* src/nano.c (do_input): Remove two superfluous false conditions.
|
||||||
* src/nano.h, src/text.c (add_undo): Avoid a compiler warning with
|
* src/nano.h, src/text.c (add_undo): Avoid a compiler warning with
|
||||||
|
|
|
@ -63,7 +63,6 @@ void do_page_up(void)
|
||||||
|
|
||||||
/* If we're not in smooth scrolling mode, put the cursor at the
|
/* 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. */
|
* beginning of the top line of the edit window, as Pico does. */
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
if (!ISSET(SMOOTH_SCROLL)) {
|
if (!ISSET(SMOOTH_SCROLL)) {
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2495,7 +2495,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
#ifndef DISABLE_WRAPPING
|
#ifndef DISABLE_WRAPPING
|
||||||
/* Overwrite an rcfile "set nowrap" or --disable-wrapping-as-root
|
/* 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)
|
if (fill_used)
|
||||||
UNSET(NO_WRAP);
|
UNSET(NO_WRAP);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -72,8 +72,8 @@ bool parse_num(const char *str, ssize_t *val)
|
||||||
|
|
||||||
assert(str != NULL);
|
assert(str != NULL);
|
||||||
|
|
||||||
/* Man page for strtol() says this is required, and
|
/* The manual page for strtol() says this is required, and
|
||||||
it looks like it is! */
|
* it looks like it is! */
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
|
||||||
j = (ssize_t)strtol(str, &first_error, 10);
|
j = (ssize_t)strtol(str, &first_error, 10);
|
||||||
|
|
|
@ -2892,7 +2892,6 @@ int update_line(filestruct *fileptr, size_t index)
|
||||||
fprintf(stderr, "update_line(): converted(1) line = %s\n", converted);
|
fprintf(stderr, "update_line(): converted(1) line = %s\n", converted);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Paint the line. */
|
/* Paint the line. */
|
||||||
edit_draw(fileptr, converted, line, page_start);
|
edit_draw(fileptr, converted, line, page_start);
|
||||||
free(converted);
|
free(converted);
|
||||||
|
|
Loading…
Reference in New Issue