fix textsplit core dump caused by interaction of new 1.20 code with little-tested camelcase splitting section
This commit is contained in:
parent
970c079d8c
commit
efaa1fb3a3
@ -729,7 +729,10 @@ bool TextSplit::text_to_words(const string &in)
|
||||
m_wordLen--;
|
||||
if (!doemit(false, it.getBpos()))
|
||||
return false;
|
||||
m_wordStart--;
|
||||
// m_wordstart could be 0 here if the span was reset
|
||||
// for excessive length
|
||||
if (m_wordStart)
|
||||
m_wordStart--;
|
||||
m_wordLen++;
|
||||
}
|
||||
goto NORMALCHAR;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user