The right solution would be to make a log file at startup, and append a copy of the original text and then every last bit of input, exactly as it is typed, interspersed with some metadata. Then, if anything happens, you just exit on the spot, and absolutely nothing is lost.<p>The type of stuff edited doesn't matter: could be audio, video, 3D design, vector drawing.<p>All editors should operate this way. It is disgraceful none do.