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.
Merge pull request #120 from hpesoj/master

Fix disappearing variables bug