implementing move command for line

The undo for line has a little glitch.