summaryrefslogtreecommitdiffstats
path: root/contrib/nvi/vi
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-04-18 23:36:52 +0000
committerjkh <jkh@FreeBSD.org>1997-04-18 23:36:52 +0000
commitc87043915bcfdce2b8ed90750a5f5ed2ee987535 (patch)
tree39809647dfb0188b77313938742b106bf2b0d919 /contrib/nvi/vi
parent385cd60e059598672473eaed82f6c2bc41774df1 (diff)
downloadFreeBSD-src-c87043915bcfdce2b8ed90750a5f5ed2ee987535.zip
FreeBSD-src-c87043915bcfdce2b8ed90750a5f5ed2ee987535.tar.gz
Enable GLOBAL tags support for nvi.
Submitted-By: Shigio Yamaguchi <shigio@wafu.netgate.net>
Diffstat (limited to 'contrib/nvi/vi')
-rw-r--r--contrib/nvi/vi/v_ex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/nvi/vi/v_ex.c b/contrib/nvi/vi/v_ex.c
index 359080c..bcb0ea6 100644
--- a/contrib/nvi/vi/v_ex.c
+++ b/contrib/nvi/vi/v_ex.c
@@ -226,6 +226,11 @@ v_tagpush(sp, vp)
ARGS *ap[2], a;
EXCMD cmd;
+#ifdef GTAGS
+ if (O_ISSET(sp, O_GTAGSMODE) && vp->m_start.cno == 0)
+ ex_cinit(&cmd, C_RTAG, 0, OOBLNO, 0, 0, ap);
+ else
+#endif
ex_cinit(&cmd, C_TAG, 0, OOBLNO, 0, 0, ap);
ex_cadd(&cmd, &a, VIP(sp)->keyw, strlen(VIP(sp)->keyw));
return (v_exec_ex(sp, vp, &cmd));
OpenPOWER on IntegriCloud