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

pull/1247/head
nicm 2018-01-01 11:03:54 +00:00
parent c9896d9554
commit fe26f977e6
1 changed files with 1 additions and 0 deletions

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;