summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2022-05-30 13:00:20 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2022-05-30 13:00:20 +0000
commit43fa4a2b1b3a0f49a8089b70c23dcf3dd4678b55 (patch)
treee2830c4031a231b41a0521a8eefe85aac59994bd /usr.bin/tmux/input.c
parentdc6c630da48e4bbd14ff53fae7d6b7d2f621fdee (diff)
Add a way for lines added to copy mode to be passed through the parser
to handle escape sequences and use it for run-shell, GitHub issue 3156.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r--usr.bin/tmux/input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 8f3d04ea42b..0724c8f307f 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.201 2022/05/30 12:51:27 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.202 2022/05/30 13:00:18 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1078,6 +1078,9 @@ input_reply(struct input_ctx *ictx, const char *fmt, ...)
va_list ap;
char *reply;
+ if (bev == NULL)
+ return;
+
va_start(ap, fmt);
xvasprintf(&reply, fmt, ap);
va_end(ap);