Fix endless redrawing problem for TextCursorPainter
Adjusted specs
Fix redrawing problem in simple-editor.rb