aboutsummaryrefslogtreecommitdiff
path: root/g.tmac
diff options
context:
space:
mode:
Diffstat (limited to 'g.tmac')
-rw-r--r--g.tmac9
1 files changed, 4 insertions, 5 deletions
diff --git a/g.tmac b/g.tmac
index f61afc0..d35b462 100644
--- a/g.tmac
+++ b/g.tmac
@@ -100,7 +100,6 @@
.
.\" _e -- set environment
.de _e
-. ds _nenv \$1
.
. \" initialize document?
. if '\n(_a'0' \{\
@@ -117,18 +116,18 @@
.
. \" keep track of previous and new environment
. ds _penv \*[_env]
-. ds _env \*[_nenv]
+. ds _env \$1
.
. \" activate new environment
-. if !'\*[_nenv]'' \{\
-. ev \*[_nenv]
+. if !'\$1'' \{\
+. ev \$1
. nr sp \n[\n[.ev]_sp]
. nr ti \n[\n[.ev]_ti]
. sp \n(spu
. \}
.
. \" post-environment operations
-. if '\*[_nenv]'' .return
+. if '\$1'' .return
.
. \" add small space after title
. if '\*[_penv]'t' \{\