Implemented undo/redo for when pressing mouse just after output has been
set and output indication is removed.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>