Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 7272d8f

Browse files
author
runrevali
committed
[[ Bug 13783 ]] Empty should not be among the items of empty
1 parent 10bf162 commit 7272d8f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docs/notes/bugfix-13783.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Empty is among the items of empty

engine/src/chunk.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5600,7 +5600,8 @@ MCTextChunkIterator::MCTextChunkIterator(Chunk_term p_chunk_type, MCStringRef p_
56005600
break_iterator = nil;
56015601
sp = nil;
56025602
range = MCRangeMake(0, 0);
5603-
exhausted = false;
5603+
// AL-2014-10-24: [[ Bug 13783 ]] Set exhausted to true if the string is immediately exhausted
5604+
exhausted = MCStringIsEmpty(p_text);
56045605
length = MCStringGetLength(text);
56055606
first_chunk = true;
56065607
break_position = 0;

0 commit comments

Comments
 (0)