added ability to undo (restore) the previously recorded tape
authorHolger Schemel <info@artsoft.org>
Tue, 15 Sep 2020 06:40:14 +0000 (08:40 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 15 Sep 2020 06:40:14 +0000 (08:40 +0200)
commitc4621f6e17b3806b7edc0ab50e72353cb991842e
tree4ac04e3404e226dc552312861ddbd06878d91670
parent5a53ae0c5ee5c9c61fdc3a103b92a8a85add50d2
added ability to undo (restore) the previously recorded tape

When the in-memory tape is erased with more than a minimum length of
playing time (currently set to 20 seconds), an internal copy of the
tape is created to be able to restore it. Just type ":undo-tape" or
":ut" to undo (restore) the last tape.

If the in-memory tape to be erased is shorter than the minimum length,
an undo tape is created from it if it is longer than the currently
stored undo tape.
src/events.c
src/tape.c
src/tape.h