Retains the unnamed register during jumps
Reverts previous hacks
Adds eventhandler to restore the unnamed register