patch 9.1.1396: 'errorformat' is a global option
Problem: The 'grepformat' option is global option, but it would be
useful to have it buffer-local, similar to 'errorformat' and
other quickfix related options (Dani Dickstein)
Solution: Add the necessary code to support global-local 'grepformat',
allowing different buffers to parse different grep output
formats (glepnir)
fixes: #17316
closes: #17315
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
670d0c1468
commit
7b9eb6389d
@ -33,6 +33,7 @@
|
||||
#define PV_BT OPT_BUF(BV_BT)
|
||||
#ifdef FEAT_QUICKFIX
|
||||
# define PV_EFM OPT_BOTH(OPT_BUF(BV_EFM))
|
||||
# define PV_GEFM OPT_BOTH(OPT_BUF(BV_GEFM))
|
||||
# define PV_GP OPT_BOTH(OPT_BUF(BV_GP))
|
||||
# define PV_MP OPT_BOTH(OPT_BUF(BV_MP))
|
||||
#endif
|
||||
@ -1154,7 +1155,7 @@ static struct vimoption options[] =
|
||||
{(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
|
||||
{"grepformat", "gfm", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
|
||||
#ifdef FEAT_QUICKFIX
|
||||
(char_u *)&p_gefm, PV_NONE, NULL, NULL,
|
||||
(char_u *)&p_gefm, PV_GEFM, NULL, NULL,
|
||||
{(char_u *)DFLT_GREPFORMAT, (char_u *)0L}
|
||||
#else
|
||||
(char_u *)NULL, PV_NONE, NULL, NULL,
|
||||
|
||||
Reference in New Issue
Block a user