found->depth[depth].array[position].object.stop = cache->objects->array[depth].stop;
}
- found->depth[depth].array[position].content.array[0].start = cache->positions->array[depth];
- found->depth[depth].array[position].content.array[0].stop = newline_last;
+ // The Content is empty when line_start is the same as the start position.
+ if (line_start == cache->positions->array[depth]) {
+ found->depth[depth].array[position].content.array[0].start = 1;
+ found->depth[depth].array[position].content.array[0].stop = 0;
+ }
+ else {
+ found->depth[depth].array[position].content.array[0].start = cache->positions->array[depth];
+ found->depth[depth].array[position].content.array[0].stop = newline_last;
+ }
+
found->depth[depth].array[position].content.used = 1;
if (position >= found->depth[depth].used) {