Fixed undo and swap plus \p for paste mode