summaryrefslogtreecommitdiffstats
path: root/contrib/nvi/vi/v_ex.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/nvi/vi/v_ex.c')
-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