aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-24 21:49:05 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-24 21:49:05 +0000
commitc45eb2713b90fb6b354d058c03ea9b670c00a1b5 (patch)
tree24d3a1d00e9caec8dfa6ddcc18be8f5d62826a41 /screen-write.c
parent3969b59ae5f9a40ac2b869b7b58c4fc83fc25749 (diff)
downloadrtmux-c45eb2713b90fb6b354d058c03ea9b670c00a1b5.tar.gz
rtmux-c45eb2713b90fb6b354d058c03ea9b670c00a1b5.tar.bz2
rtmux-c45eb2713b90fb6b354d058c03ea9b670c00a1b5.zip
Check the right variable. Doh.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c
index 93417e0d..fa3f5a40 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -1,4 +1,4 @@
-/* $Id: screen-write.c,v 1.34 2009-02-21 19:25:58 nicm Exp $ */
+/* $Id: screen-write.c,v 1.35 2009-02-24 21:49:05 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -30,7 +30,7 @@ screen_write_start(
struct screen_write_ctx *ctx, struct window_pane *wp, struct screen *s)
{
ctx->wp = wp;
- if (wp != NULL && ctx->s != NULL)
+ if (wp != NULL && s == NULL)
ctx->s = wp->screen;
else
ctx->s = s;