summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2012-05-29 05:40:37 +0000
committerlum <lum@cvs.openbsd.org>2012-05-29 05:40:37 +0000
commit2a2b3a3879f142f02ae55d2925dec1fef3c3066a (patch)
tree9dccd8e58674be4d74e908df65692513a98b2460
parente6993bc6836521d594d5cf1b723768a0bb85ce6e (diff)
Increase the size of some window variables from char to int. This diff
improves mg on screens (xterms) with lots of lines. Testing done by naddy@ and myself.
-rw-r--r--usr.bin/mg/def.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h
index 6d6a7bd56e1..e7b59c525a5 100644
--- a/usr.bin/mg/def.h
+++ b/usr.bin/mg/def.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: def.h,v 1.121 2012/05/25 04:56:58 lum Exp $ */
+/* $OpenBSD: def.h,v 1.122 2012/05/29 05:40:36 lum Exp $ */
/* This file is in the public domain. */
@@ -194,9 +194,9 @@ struct mgwin {
struct line *w_markp; /* Line containing "mark" */
int w_doto; /* Byte offset for "." */
int w_marko; /* Byte offset for "mark" */
- char w_toprow; /* Origin 0 top row of window */
- char w_ntrows; /* # of rows of text in window */
- char w_frame; /* #lines to reframe by. */
+ int w_toprow; /* Origin 0 top row of window */
+ int w_ntrows; /* # of rows of text in window */
+ int w_frame; /* #lines to reframe by. */
char w_rflag; /* Redisplay Flags. */
char w_flag; /* Flags. */
struct line *w_wrapline;