PR
#5044 completes work on Leo's undo code. It's been quite a ride.
The PR originally intended to implement "word" granularity, but experiments show that retaining Leo's "line" granularity is a better option. For a complete discussion of this decision, see the PR.
The work uncovered a huge, ancient hole in Leo's unit tests for commands. See
#5031 for the details.
Please keep testing Leo's main branch.
Edward