Merging BTextView autoindent fixes from r32993 in trunk.
git-svn-id: file:///srv/svn/repos/haiku/haiku/branches/releases/r1alpha1@33052 a95241bf-73f2-0310-859d-f6bbb57e9c96
Diff
src/kits/interface/TextView.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
@@ -3627,14 +3627,13 @@
start = offset = OffsetAt(_LineAt(fSelStart));
while (ByteAt(offset) != '\0' &&
(ByteAt(offset) == B_TAB || ByteAt(offset) == B_SPACE))
(ByteAt(offset) == B_TAB || ByteAt(offset) == B_SPACE)
&& offset < fSelStart)
offset++;
_DoInsertText(bytes, numBytes, fSelStart, NULL);
if (start != offset)
_DoInsertText(Text() + start, offset - start, fSelStart, NULL);
_DoInsertText(bytes, numBytes, fSelStart, NULL);
} else
_DoInsertText(bytes, numBytes, fSelStart, NULL);