Add C-g at command prompt for emacs people, GitHub issue 1213.

This commit is contained in:
nicm 2018-01-01 11:03:54 +00:00
parent c9896d9554
commit fe26f977e6

View File

@ -1339,6 +1339,7 @@ process_key:
break;
case '\033': /* Escape */
case '\003': /* C-c */
case '\007': /* C-g */
if (c->prompt_inputcb(c, c->prompt_data, NULL, 1) == 0)
status_prompt_clear(c);
break;