Undo doesn't work in message editor

While typing an email message, I noticed that UNDO doesn’t do anything. I type text, hit undo, and nothing happens. 
I just lost a large message because of that… I was trying to remove formating, selected the whole message, and tried various things to remove the formatting, among them “paste as text”. Big mistake. Now my message is gone, and I can’t undo. But even just small changes to the message aren’t affected by undo. BIG PROBLEM!!!

Update: when I compose a new message, undo works. Just then it stopped… still annoying, but less.