dead loop at codeedit.cpp