NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/44088: [n]vi started defaulting to gtagsmode with NetBSD 5.0
The following reply was made to PR bin/44088; it has been noted by GNATS.
From: eric%cirr.com@localhost (Eric Schnoebelen)
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: Re: bin/44088: [n]vi started defaulting to gtagsmode with NetBSD 5.0
Date: Sun, 14 Nov 2010 14:48:52 -0600
Analysis of the source indicates that gtagsmode is on by
default, and should be off for least-astonishment reasons, if no
other. (never mind it doesn't work without the "global"
command.)
The following change makes it behave as expected:
Index: common/options.c
===================================================================
RCS file: /cvsroot/src/dist/nvi/common/options.c,v
retrieving revision 1.8
diff -b -u -w -r1.8 options.c
--- common/options.c 13 May 2010 17:52:11 -0000 1.8
+++ common/options.c 14 Nov 2010 20:46:40 -0000
@@ -98,7 +98,7 @@
{L("flash"), NULL, OPT_1BOOL, 0},
#ifdef GTAGS
/* O_GTAGSMODE FreeBSD/NetBSD */
- {L("gtagsmode"),NULL, OPT_1BOOL, 0},
+ {L("gtagsmode"),NULL, OPT_0BOOL, 0},
#endif
/* O_HARDTABS 4BSD */
{L("hardtabs"), NULL, OPT_NUM, 0},
--
Eric Schnoebelen eric%cirr.com@localhost
http://www.cirr.com
One person with a belief is equal to a force of ninety-nine who only
have an interest. -- John Stuart Mill
Home |
Main Index |
Thread Index |
Old Index