brackets used to control justification, via the rcfile
entries "punct" and "brackets". (DLR)
- Translation updates (see po/ChangeLog for details).
+ - Make the former flag same_line_wrap use TRUE and FALSE
+ instead of 1 and 0. (DLR)
- files.c:
add_open_file()
- Rearrange the NANO_SMALL #ifdef so that the code to set the
static int fill = 0; /* Fill - where to wrap lines, basically */
#endif
#ifndef DISABLE_WRAPPING
-static int same_line_wrap = 0; /* Whether wrapped text should be
- prepended to the next line */
+static int same_line_wrap = FALSE; /* Whether wrapped text should
+ be prepended to the next
+ line */
#endif
static struct termios oldterm; /* The user's original term settings */
static struct sigaction act; /* For all our fun signal handlers */
#ifndef NANO_SMALL
-static sigjmp_buf jmpbuf; /* Used to return to mainloop after SIGWINCH */
+static sigjmp_buf jmpbuf; /* Used to return to mainloop after
+ SIGWINCH */
#endif
/* What we do when we're all set to exit. */
#ifndef DISABLE_WRAPPING
void wrap_reset(void)
{
- same_line_wrap = 0;
+ same_line_wrap = FALSE;
}
#endif
/* Now we allocate the new line and copy into it. */
newline = charalloc(new_line_len + 1); /* +1 for \0 */
+ new_line_len = 0;
*newline = '\0';
#ifndef NANO_SMALL
* some other sundry things. */
/* later wraps of this line will be prepended to the next line. */
- same_line_wrap = 1;
+ same_line_wrap = TRUE;
/* Each line knows its line number. We recalculate these if we
* inserted a new line. */