aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-03-12 12:01:25 +0000
committerThomas Adam <thomas@xteddy.org>2020-03-12 12:01:25 +0000
commit5625c62044c4e8f0127d01ffedb9e618ed2e1a01 (patch)
tree57fbf3abed9a8d9ebe0633b81d9391e78be64fb1
parent1a2e66f345a0b3b87654a0ef1765d4e5700d3faa (diff)
parentb8b48e2e37b9dcc1cfebaecbd89d557eca82a0be (diff)
downloadrtmux-5625c62044c4e8f0127d01ffedb9e618ed2e1a01.tar.gz
rtmux-5625c62044c4e8f0127d01ffedb9e618ed2e1a01.tar.bz2
rtmux-5625c62044c4e8f0127d01ffedb9e618ed2e1a01.zip
Merge branch 'obsd-master'
-rw-r--r--status.c4
-rw-r--r--tmux.12
2 files changed, 5 insertions, 1 deletions
diff --git a/status.c b/status.c
index 33f6c47a..6beadb81 100644
--- a/status.c
+++ b/status.c
@@ -733,6 +733,7 @@ status_prompt_translate_key(struct client *c, key_code key, key_code *new_key)
if (c->prompt_mode == PROMPT_ENTRY) {
switch (key) {
case '\003': /* C-c */
+ case '\007': /* C-g */
case '\010': /* C-h */
case '\011': /* Tab */
case '\025': /* C-u */
@@ -813,6 +814,9 @@ status_prompt_translate_key(struct client *c, key_code key, key_code *new_key)
case 'p':
*new_key = '\031'; /* C-y */
return (1);
+ case 'q':
+ *new_key = '\003'; /* C-c */
+ return (1);
case 's':
case KEYC_DC:
case 'x':
diff --git a/tmux.1 b/tmux.1
index 3bca3b5a..8f8ab1bd 100644
--- a/tmux.1
+++ b/tmux.1
@@ -4838,7 +4838,7 @@ on the value of the
option:
.Bl -column "FunctionXXXXXXXXXXXXXXXXXXXXXXXXX" "viXXXX" "emacsX" -offset indent
.It Sy "Function" Ta Sy "vi" Ta Sy "emacs"
-.It Li "Cancel command prompt" Ta "Escape" Ta "Escape"
+.It Li "Cancel command prompt" Ta "q" Ta "Escape"
.It Li "Delete from cursor to start of word" Ta "" Ta "C-w"
.It Li "Delete entire command" Ta "d" Ta "C-u"
.It Li "Delete from cursor to end" Ta "D" Ta "C-k"