Avoid updating variables after calling self.remove().

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