From 846548be0945492c33c44c1aaa01666ff2b4c520 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 26 Feb 2018 08:09:56 +0000 Subject: [PATCH] C-g for modes too, from Mike Hamrick. --- usr.bin/tmux/mode-tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/tmux/mode-tree.c b/usr.bin/tmux/mode-tree.c index af736324486..1e46b266e12 100644 --- a/usr.bin/tmux/mode-tree.c +++ b/usr.bin/tmux/mode-tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mode-tree.c,v 1.21 2018/02/05 06:51:41 nicm Exp $ */ +/* $OpenBSD: mode-tree.c,v 1.22 2018/02/26 08:09:56 nicm Exp $ */ /* * Copyright (c) 2017 Nicholas Marriott @@ -801,6 +801,7 @@ mode_tree_key(struct mode_tree_data *mtd, struct client *c, key_code *key, switch (*key) { case 'q': case '\033': /* Escape */ + case '\007': /* C-g */ return (1); case KEYC_UP: case 'k': -- 2.20.1