summaryrefslogtreecommitdiff
path: root/usr.bin/mg/window.c
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2009-06-04 02:23:38 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2009-06-04 02:23:38 +0000
commite793626495495d40a46fde7c191a8b50e50a7fbb (patch)
tree59c1f60cc566e6605b015ca3ee65e89631b7e8d0 /usr.bin/mg/window.c
parentf61a5bac0b93a190f97ccac81cd6728fc500b021 (diff)
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.
Diffstat (limited to 'usr.bin/mg/window.c')
-rw-r--r--usr.bin/mg/window.c20
1 files changed, 10 insertions, 10 deletions
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);
}