From 2f565ead2d6cb059dba39da47a5cde105bd35125 Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Mon, 10 May 2010 23:18:36 -0400 Subject: Fix compiling with SIMPLESCREEN. --- src/resize.c | 4 ++-- src/window.h | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/resize.c b/src/resize.c index 61e044f..7516751 100644 --- a/src/resize.c +++ b/src/resize.c @@ -1048,8 +1048,8 @@ struct win *p; } p->w_alt.hlines = 0; p->w_alt.histidx = 0; -#endif p->w_alt.histheight = 0; +#endif } static void @@ -1064,9 +1064,9 @@ struct win *p; SWAP(mlines, ml); SWAP(width, t); SWAP(height, t); - SWAP(histheight, t); #ifdef COPY_PASTE + SWAP(histheight, t); SWAP(hlines, ml); SWAP(histidx, t); #endif diff --git a/src/window.h b/src/window.h index 1f70f39..7311ecb 100644 --- a/src/window.h +++ b/src/window.h @@ -283,12 +283,14 @@ struct win struct mline *mlines; int width; int height; - int histheight; #ifdef COPY_PASTE + int histheight; struct mline *hlines; int histidx; - struct cursor cursor; +#else + int histheight; /* 0 */ #endif + struct cursor cursor; } w_alt; struct event w_destroyev; /* window destroy event */ -- cgit v1.2.1