diff options
author | Steven Schubiger <stsc@refcnt.org> | 2013-02-11 01:32:06 +0100 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2013-02-11 01:32:06 +0100 |
commit | 5ba883a106d17133c6f40f039bb696b7d6a9b053 (patch) | |
tree | 9ca129149f38408fd4bf42b1a47669e364d0af7b | |
parent | c4db09c7cb72cf9588968bb120edaa7f6d2313c6 (diff) | |
download | colorize-5ba883a106d17133c6f40f039bb696b7d6a9b053.tar.gz colorize-5ba883a106d17133c6f40f039bb696b7d6a9b053.tar.bz2 |
Advance position for end sequence
-rw-r--r-- | colorize.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -802,7 +802,7 @@ print_clean (const char *line) } while (check_values); END: if (*p == 'm') { - const char *end = p; + const char *end = p++; if (!offsets) offsets = xmalloc (++count * sizeof (char **)); else @@ -811,6 +811,7 @@ print_clean (const char *line) offsets[i][0] = (char *)begin; /* ESC */ offsets[i][1] = (char *)end; /* m */ i++; + continue; } DISCARD: continue; |