Avoid updating variables after calling self.remove()

This fixes a bug where all variables would be cleared when
exiting insert mode then opening a line below the current line.