summaryrefslogtreecommitdiffstats
path: root/cmd-unlink-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-unlink-window.c')
-rw-r--r--cmd-unlink-window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd-unlink-window.c b/cmd-unlink-window.c
index 39cdd8ed..46e9df36 100644
--- a/cmd-unlink-window.c
+++ b/cmd-unlink-window.c
@@ -39,6 +39,10 @@ const struct cmd_entry cmd_unlink_window_entry = {
enum cmd_retval
cmd_unlink_window_exec(struct cmd *self, struct cmd_q *cmdq)
{
+#ifdef TMATE
+ cmdq_error(cmdq, "unlink window is not supported with tmate");
+ return (CMD_RETURN_ERROR);
+#else
struct args *args = self->args;
struct winlink *wl;
struct window *w;
@@ -67,4 +71,5 @@ cmd_unlink_window_exec(struct cmd *self, struct cmd_q *cmdq)
recalculate_sizes();
return (CMD_RETURN_NORMAL);
+#endif
}