draw cursor in editing mode