+ case_esc: case ESC: /* get here if p_wc != ESC or when ESC typed twice */ case Ctrl_C: /* In exmode it doesn't make sense to return. Except when *************** *** 1094,1099 **** --- 1095,1105 ---- save_cmdline(&save_ccline); c = get_expr_register(); restore_cmdline(&save_ccline); + if (get_expr_line() == NULL) + { + beep_flush(); + goto case_esc; + } } } #endif