aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2022-04-18 11:47:14 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2022-04-18 11:47:14 +0100
commit58d1a206c6ae6b33059ea6b469c21dad92ea0841 (patch)
tree7a27d44d3631833c77536a700e509d5e08fbb562 /input.c
parente0c982c5adf54fcfc7c6e588b1350fd8ae474310 (diff)
downloadrtmux-58d1a206c6ae6b33059ea6b469c21dad92ea0841.tar.gz
rtmux-58d1a206c6ae6b33059ea6b469c21dad92ea0841.tar.bz2
rtmux-58d1a206c6ae6b33059ea6b469c21dad92ea0841.zip
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 'input.c')
-rw-r--r--input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/input.c b/input.c
index 45ccefd6..693b6f32 100644
--- a/input.c
+++ b/input.c
@@ -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);