aboutsummaryrefslogtreecommitdiffstats
path: root/crs.c
diff options
context:
space:
mode:
Diffstat (limited to 'crs.c')
-rwxr-xr-x[-rw-r--r--]crs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crs.c b/crs.c
index a2094f7..12c0223 100644..100755
--- a/crs.c
+++ b/crs.c
@@ -249,9 +249,10 @@ SCM owidth(arg)
{
if (UNBNDP(arg)) arg = cur_outp;
ASRTER(NIMP(arg) && OPOUTPORTP(arg), arg, ARG1, s_owidth);
- if (NIMP(*loc_stdscr))
+ if (NIMP(*loc_stdscr)) {
if (WINP(arg)) return MAKINUM(WIN(arg)->_maxx+1);
else return MAKINUM(COLS);
+ }
return MAKINUM(80);
}
SCM oheight(arg)