Add C-g at command prompt for emacs people, GitHub issue 1213.
authornicm <nicm@openbsd.org>
Mon, 1 Jan 2018 11:03:54 +0000 (11:03 +0000)
committernicm <nicm@openbsd.org>
Mon, 1 Jan 2018 11:03:54 +0000 (11:03 +0000)
usr.bin/tmux/status.c

index 12a9ebe..86aa853 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.173 2017/12/27 13:55:42 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.174 2018/01/01 11:03:54 nicm Exp $ */
 
 /*
  * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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;