terminator
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3749
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
- help.c:
do_help()
- Simplify screen update handling and exiting. (DLR)
+- winio.c:
+ display_string()
+ - Properly handle buf[start_index]'s being a null terminator.
+ (DLR)
- doc/syntax/c.nanorc:
- Since .i and .ii are preprocessed C and C++ output, colorize
them here. (Mike Frysinger)
index = 0;
- if (buf[start_index] != '\t' && (column < start_col || (dollars &&
- column > 0))) {
+ if (buf[start_index] != '\0' && buf[start_index] != '\t' &&
+ (column < start_col || (dollars && column > 0))) {
/* We don't display all of buf[start_index] since it starts to
* the left of the screen. */
buf_mb_len = parse_mbchar(buf + start_index, buf_mb, NULL);