about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--format.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/format.c b/format.c
index cb9cb15..8c2b0ed 100644
--- a/format.c
+++ b/format.c
@@ -68,6 +68,7 @@ bool formatParse(struct Format *format, const wchar_t *split) {
 	format->str += format->len;
 	if (!format->str[0]) {
 		if (split == format->str && !format->split) {
+			format->len = 0;
 			format->split = true;
 			return true;
 		}