=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/display.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- src/usr.bin/mg/display.c 2007/03/29 17:37:15 1.34 +++ src/usr.bin/mg/display.c 2007/05/28 17:52:17 1.35 @@ -1,4 +1,4 @@ -/* $OpenBSD: display.c,v 1.34 2007/03/29 17:37:15 kjell Exp $ */ +/* $OpenBSD: display.c,v 1.35 2007/05/28 17:52:17 kjell Exp $ */ /* This file is in the public domain. */ @@ -108,10 +108,12 @@ /* Is macro recording enabled? */ extern int macrodef; +/* Is working directory global? */ +extern int globalwd; /* - * Since we don't have variables (we probably should) this is a command - * processor for changing the value of the line number mode flag. + * Since we don't have variables (we probably should) these are command + * processors for changing the values of mode flags. */ /* ARGSUSED */ int @@ -127,8 +129,6 @@ return (TRUE); } - - /* * Reinit the display data structures, this is called when the terminal * size changes. @@ -826,9 +826,11 @@ vtputc('-'); ++n; } - /* XXX This should eventually move to a real mode */ + /* XXX These should eventually move to a real mode */ if (macrodef == TRUE) n += vtputs("-def"); + if (globalwd == TRUE) + n += vtputs("-gwd"); vtputc(')'); ++n;