mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2024-11-01 05:15:20 +02:00
tools/libtxt/edit.c (text2edit): properly finish parsing (it always failed)
This commit is contained in:
parent
6ffcd815f9
commit
ccc27577cb
@ -236,6 +236,9 @@ struct edit *text2edit(const char *s)
|
|||||||
s = end;
|
s = end;
|
||||||
start = s+1;
|
start = s+1;
|
||||||
}
|
}
|
||||||
|
if (s != start)
|
||||||
|
add_string(&last, start, s-start);
|
||||||
|
return e;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
free_edit(e);
|
free_edit(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user