diff options
author | Duncaen <mail@duncano.de> | 2017-04-01 17:16:29 +0200 |
---|---|---|
committer | Duncaen <mail@duncano.de> | 2017-04-01 17:17:09 +0200 |
commit | 537282d6af33e24f653884b41dc54ac2d143a664 (patch) | |
tree | 0c9e77407f6e19bdf29412f1729a5ae176f44354 /seq.c | |
parent | b960d5e3cc1abd1849ef6c0019f16ab7dd77e52a (diff) | |
download | mblaze-537282d6af33e24f653884b41dc54ac2d143a664.tar.gz mblaze-537282d6af33e24f653884b41dc54ac2d143a664.tar.xz mblaze-537282d6af33e24f653884b41dc54ac2d143a664.zip |
seq: fix selecting subthreads at the end of sequences and add test cases
Diffstat (limited to 'seq.c')
-rw-r--r-- | seq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/seq.c b/seq.c index f1fb6b1..9ff7f59 100644 --- a/seq.c +++ b/seq.c @@ -266,8 +266,10 @@ parse_subthread(char *map, long a, long *stopo) for (s = map, line = 0; s; s = t+1) { t = strchr(s, '\n'); - if (!t) + if (!t) { + minindent = -1; break; + } line++; int indent = 0; while (*s && iswsp(*s)) { |