From e793626495495d40a46fde7c191a8b50e50a7fbb Mon Sep 17 00:00:00 2001 From: Kjell Wooding Date: Thu, 4 Jun 2009 02:23:38 +0000 Subject: Rename w_flag to w_rflag. This is not a general purpose flag: it is for redisplay options only. I need an additional all-purpose flag, so renaming removes the desire to wrongly overload the existing one. Turdshine. No functional chage. --- usr.bin/mg/window.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'usr.bin/mg/window.c') diff --git a/usr.bin/mg/window.c b/usr.bin/mg/window.c index 3f0bf956149..85a0e1bac90 100644 --- a/usr.bin/mg/window.c +++ b/usr.bin/mg/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.25 2006/07/25 08:22:32 kjell Exp $ */ +/* $OpenBSD: window.c,v 1.26 2009/06/04 02:23:37 kjell Exp $ */ /* This file is in the public domain. */ @@ -22,7 +22,7 @@ new_window(struct buffer *bp) wp->w_doto = 0; wp->w_markp = NULL; wp->w_marko = 0; - wp->w_flag = 0; + wp->w_rflag = 0; wp->w_frame = 0; wp->w_wrapline = NULL; wp->w_dotline = wp->w_markline = 1; @@ -48,7 +48,7 @@ reposition(int f, int n) #else /* !GOSREC */ curwp->w_frame = n; #endif /* !GOSREC */ - curwp->w_flag |= WFFRAME; + curwp->w_rflag |= WFFRAME; sgarbf = TRUE; return (TRUE); } @@ -192,7 +192,7 @@ onlywind(int f, int n) /* 2 = mode, echo */ curwp->w_ntrows = nrow - 2; curwp->w_linep = lp; - curwp->w_flag |= WFMODE | WFFULL; + curwp->w_rflag |= WFMODE | WFFULL; return (TRUE); } @@ -275,8 +275,8 @@ splitwind(int f, int n) curwp->w_linep = lp; wp->w_linep = lp; - curwp->w_flag |= WFMODE | WFFULL; - wp->w_flag |= WFMODE | WFFULL; + curwp->w_rflag |= WFMODE | WFFULL; + wp->w_rflag |= WFMODE | WFFULL; return (TRUE); } @@ -327,8 +327,8 @@ enlargewind(int f, int n) } curwp->w_ntrows += n; adjwp->w_ntrows -= n; - curwp->w_flag |= WFMODE | WFFULL; - adjwp->w_flag |= WFMODE | WFFULL; + curwp->w_rflag |= WFMODE | WFFULL; + adjwp->w_rflag |= WFMODE | WFFULL; return (TRUE); } @@ -380,8 +380,8 @@ shrinkwind(int f, int n) } curwp->w_ntrows -= n; adjwp->w_ntrows += n; - curwp->w_flag |= WFMODE | WFFULL; - adjwp->w_flag |= WFMODE | WFFULL; + curwp->w_rflag |= WFMODE | WFFULL; + adjwp->w_rflag |= WFMODE | WFFULL; return (TRUE); } -- cgit v1.2.3