minor fix to mark_current_line