Added protection against user changing caret position while code movie is running type command.