Fix for bug #183109, r=shanjian, sr=sfraser, a=asa

This commit is contained in:
beard%netscape.com 2002-12-07 00:41:01 +00:00
Родитель 30b7eaa24f
Коммит 0b5ced9d65
1 изменённых файлов: 11 добавлений и 4 удалений

Просмотреть файл

@ -97,10 +97,17 @@ NS_IMETHODIMP nsSemanticUnitScanner::Next(const PRUnichar *text, PRInt32 length,
// if we don't have enough text to make decision, return
if (needMoreText) {
*begin = pos;
*end = pos;
*_retval = PR_FALSE;
return NS_OK;
if (isLastBuffer) {
*begin = pos;
*end = length;
*_retval = PR_TRUE;
return NS_OK;
} else {
*begin = pos;
*end = pos;
*_retval = PR_FALSE;
return NS_OK;
}
}
// if what we got is space or punct, look at the next break