* I am pretty sure this was a bug... spotted by pure chance, should have

caused messed up undo/redo when removing multibyte UTF8 glyphs via forward
  backspace


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23156 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2007-12-25 21:56:14 +00:00
parent 4b4e08cc67
commit c9198a4cce
@@ -392,7 +392,7 @@ _BTypingUndoBuffer_::ForwardErase()
if (fTextLength < newLength) {
// store the erased character
for (int32 x = 0; x < charLen; x++)
buffer[fTextLength] = fTextView->ByteAt(start + x);
buffer[fTextLength + x] = fTextView->ByteAt(start + x);
}
fTextLength = newLength;