Sometimes the undo operation does not correctly undo removal of lyrics.
Open an empty score and add some random notes. Then add a word with a dash, e.g. I added "Wan-dern", so that Wan is below one note and dern below the next one.
Now, double click on "Wan" and remove it by pressing backspace then go back with ESC.
Next, try to undo this removal of Wan using Ctrl-Z.
Expected behaviour: It should put back "Wan-"
Actual behaviour: It puts back "-" only