[haiku-commits] r33886 - haiku/trunk/src/kits/interface
- From: zooey@xxxxxxxxxxxxxxx
- To: haiku-commits@xxxxxxxxxxxxx
- Date: Wed, 4 Nov 2009 20:25:28 +0100 (CET)
Author: zooey
Date: 2009-11-04 20:25:28 +0100 (Wed, 04 Nov 2009)
New Revision: 33886
Changeset: http://dev.haiku-os.org/changeset/33886/haiku
Modified:
haiku/trunk/src/kits/interface/TextView.cpp
Log:
fixed regression of r33882 reported by Michael Weirauch:
* wrapping must always be possible at a newline!
Modified: haiku/trunk/src/kits/interface/TextView.cpp
===================================================================
--- haiku/trunk/src/kits/interface/TextView.cpp 2009-11-04 18:49:15 UTC (rev
33885)
+++ haiku/trunk/src/kits/interface/TextView.cpp 2009-11-04 19:25:28 UTC (rev
33886)
@@ -1949,7 +1949,9 @@
{
// TODO: This should be improved using the LocaleKit.
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;
uint32 nextClassification = _CharClassification(offset + 1);
Other related posts:
- » [haiku-commits] r33886 - haiku/trunk/src/kits/interface - zooey