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:
@@ -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 \
|
||||||
|
@@ -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' */
|
||||||
|
@@ -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 \
|
||||||
|
15
src/testdir/test_cscope.vim
Normal file
15
src/testdir/test_cscope.vim
Normal 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
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user