Lines of Python above cursor executing before enter is pressed twice

Discussion created by katherinehayman on May 20, 2013
Latest reply on May 20, 2013 by Playa
I am new to Python but I have been having an issue with the lines of code in the ArcMap Python window above where I am typing beginning to execute before I have completed everything and pressed enter twice.  My understanding is that ctrl-enter is pressed to create a new line, (and lines above should not do anything when this happens) and enter is then pressed twice when I am ready for the whole thing to execute.  This problem seems to be happening mainly when I use the up arrow to recall the last code snippet that was typed.  Is there a way to turn this off?