Rudimentary undo line implementation