TextEditor: Dump the TextDocument on all edits for now.

This commit is contained in:
Stephan Aßmus 2014-01-22 00:18:47 +01:00
parent 04b0e36ac0
commit c9b30004b8
1 changed files with 4 additions and 0 deletions

View File

@ -256,6 +256,8 @@ TextEditor::Insert(int32 offset, const BString& string)
fLayout->Invalidate(); fLayout->Invalidate();
_SetCaretOffset(offset + string.CountChars(), true, false, true); _SetCaretOffset(offset + string.CountChars(), true, false, true);
fDocument->PrintToStream();
} }
return ret; return ret;
@ -275,6 +277,8 @@ TextEditor::Remove(int32 offset, int32 length)
fLayout->Invalidate(); fLayout->Invalidate();
_SetCaretOffset(offset, true, false, true); _SetCaretOffset(offset, true, false, true);
fDocument->PrintToStream();
} }
return ret; return ret;