From 537282d6af33e24f653884b41dc54ac2d143a664 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sat, 1 Apr 2017 17:16:29 +0200 Subject: seq: fix selecting subthreads at the end of sequences and add test cases --- seq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'seq.c') 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)) { -- cgit 1.4.1