aboutsummaryrefslogtreecommitdiff
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-04-09 16:01:45 +0100
committerThomas Adam <thomas@xteddy.org>2020-04-09 16:01:45 +0100
commit52e3d960e7ebe2006509d48c427ffd8f25a0cf52 (patch)
tree8f6deb3d44616e92ff05735b4c587dfe3c5d8235 /cmd-send-keys.c
parent916c3787d7464f66287f83814d563ff36ff3a96a (diff)
parent26f5dfbe46c75f8b907ee75daaadde9a310d8dfb (diff)
downloadrtmux-52e3d960e7ebe2006509d48c427ffd8f25a0cf52.tar.gz
rtmux-52e3d960e7ebe2006509d48c427ffd8f25a0cf52.tar.bz2
rtmux-52e3d960e7ebe2006509d48c427ffd8f25a0cf52.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index 5770572a..15967b0c 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -152,7 +152,7 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item)
return (CMD_RETURN_ERROR);
}
if (wme != NULL && (args_has(args, 'X') || args->argc == 0)) {
- if (wme == NULL || wme->mode->command == NULL) {
+ if (wme->mode->command == NULL) {
cmdq_error(item, "not in a mode");
return (CMD_RETURN_ERROR);
}