When the user presses RETURN, they almost certainly want a new paragraph/newline, but there is much less certainty that they want the autocorrect. Since initial import these have been a single undo event. This patch splits it into two undo items, and places the AutoCorrect item last, so that the first undo restores before the AutoCorrect and the second undo removes the new paragraph/newline marker. Two other improvements: -after autocorrect undo, keep the cursor at the empty paragraph, not after the auto-correction. -don't autocorrect newline if DoAutoCorrect is false (a 2007 regression from a newby contributor). Somewhat amazing to me is the extreme lack of EDITUNDO_ choices. Change-Id: I4c525171d07d641ce5ddd5243c1ccb1eb1f7ac5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209139 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com>
Edit Engine
In OpenOffice.org build DEV300m72 this module was split off from svx but it
has no dependencies on svx (nor on sfx2) while in turn svx depends on editeng
Read more in the mailing list post: http://www.mail-archive.com/dev@openoffice.org/msg13237.html
If you build LibreOffice with dbgutil, you have some extended debug keys:
- Ctrl+Alt+F1 - draws the paragraph rectangles in different colors
- Ctrl+Alt+F11 - toggles dumping the edit engine state to the "editenginedump.log" on draw
- Ctrl+Alt+F12 - dumps the current edit engine state to "editenginedump.log"