poboiko created this revision. poboiko added reviewers: Frameworks, dfaure. Herald added a project: Frameworks. poboiko requested review of this revision.
REVISION SUMMARY This patch ensures that everything related to headings is undoable with a single `Ctrl+Z`. It also adds tests for the following use cases (ensuring those are undoable with a single `undo` command): 1. Make line a heading 2. Creating a newline after a heading 3. Merging a heading and non-heading line with `Delete` key 4. The same, with `Backspace` key TEST PLAN `make && ctest` REPOSITORY R310 KTextWidgets BRANCH heading-undo-stack (branched from master) REVISION DETAIL https://phabricator.kde.org/D28968 AFFECTED FILES autotests/krichtextedittest.cpp src/widgets/krichtextedit.cpp To: poboiko, #frameworks, dfaure Cc: kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns