* 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user