Code

fix artefacts left by text cursor and disappearing cursor on empty canvas