* cancel_line_input_event now handles an NULL event parameter correctly