updated code editor state machine

Ignore-this: c6e0f4a3497bf2c0cc01a739f7192938

fixed issue where editor would be in ready state even though
code changed or user moved position after code changed

darcs-hash:20140208035308-c21fe-a23c0acf5aad49bd509c90fdaf03c2127da7b32f