TextEditor: Dump the TextDocument on all edits for now.
This commit is contained in:
parent
04b0e36ac0
commit
c9b30004b8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue