fixed regression of r33882 reported by Michael Weirauch:
* wrapping must always be possible at a newline! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33886 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1949,7 +1949,9 @@ BTextView::CanEndLine(int32 offset)
|
|||||||
{
|
{
|
||||||
// TODO: This should be improved using the LocaleKit.
|
// TODO: This should be improved using the LocaleKit.
|
||||||
uint32 classification = _CharClassification(offset);
|
uint32 classification = _CharClassification(offset);
|
||||||
if (classification == CHAR_CLASS_END_OF_TEXT)
|
|
||||||
|
// wrapping is always allowed at end of text and at newlines
|
||||||
|
if (classification == CHAR_CLASS_END_OF_TEXT || ByteAt(offset) == B_ENTER)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
uint32 nextClassification = _CharClassification(offset + 1);
|
uint32 nextClassification = _CharClassification(offset + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user