0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 7.4.2033

Problem:    'cscopequickfix' option does not accept new value "a".
Solution:   Adjust list of command characters. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2016-07-13 22:44:12 +02:00
parent 3e946fdc7b
commit 6d20e17544
5 changed files with 20 additions and 1 deletions

View File

@@ -2022,6 +2022,7 @@ test_arglist \
test_cdo \ test_cdo \
test_channel \ test_channel \
test_cmdline \ test_cmdline \
test_cscope \
test_cursor_func \ test_cursor_func \
test_delete \ test_delete \
test_ex_undo \ test_ex_undo \

View File

@@ -429,7 +429,7 @@ EXTERN char_u *p_csprg; /* 'cscopeprg' */
EXTERN int p_csre; /* 'cscoperelative' */ EXTERN int p_csre; /* 'cscoperelative' */
# ifdef FEAT_QUICKFIX # ifdef FEAT_QUICKFIX
EXTERN char_u *p_csqf; /* 'cscopequickfix' */ EXTERN char_u *p_csqf; /* 'cscopequickfix' */
# define CSQF_CMDS "sgdctefi" # define CSQF_CMDS "sgdctefia"
# define CSQF_FLAGS "+-0" # define CSQF_FLAGS "+-0"
# endif # endif
EXTERN int p_cst; /* 'cscopetag' */ EXTERN int p_cst; /* 'cscopetag' */

View File

@@ -169,6 +169,7 @@ NEW_TESTS = test_arglist.res \
test_cdo.res \ test_cdo.res \
test_channel.res \ test_channel.res \
test_cmdline.res \ test_cmdline.res \
test_cscope.res \
test_farsi.res \ test_farsi.res \
test_hardcopy.res \ test_hardcopy.res \
test_history.res \ test_history.res \

View File

@@ -0,0 +1,15 @@
" Test for cscope commands.
if !has('cscope')
finish
endif
func Test_cscopequickfix()
set cscopequickfix=s-,g-,d+,c-,t+,e-,f0,i-,a-
call assert_equal('s-,g-,d+,c-,t+,e-,f0,i-,a-', &cscopequickfix)
call assert_fails('set cscopequickfix=x-', 'E474:')
call assert_fails('set cscopequickfix=s', 'E474:')
call assert_fails('set cscopequickfix=s7', 'E474:')
call assert_fails('set cscopequickfix=s-a', 'E474:')
endfunc

View File

@@ -758,6 +758,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2033,
/**/ /**/
2032, 2032,
/**/ /**/