Mercurial > vim
changeset 9505:da98db362fef v7.4.2033
commit https://github.com/vim/vim/commit/6d20e1754461b0f8d395f2e3464f0dc1060497f7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 13 22:44:12 2016 +0200
patch 7.4.2033
Problem: 'cscopequickfix' option does not accept new value "a".
Solution: Adjust list of command characters. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 13 Jul 2016 22:45:05 +0200 |
parents | 9022768e9066 |
children | 50853714bb28 |
files | src/Makefile src/option.h src/testdir/Make_all.mak src/testdir/test_cscope.vim src/version.c |
diffstat | 5 files changed, 20 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Makefile +++ b/src/Makefile @@ -2022,6 +2022,7 @@ test_arglist \ test_cdo \ test_channel \ test_cmdline \ + test_cscope \ test_cursor_func \ test_delete \ test_ex_undo \
--- a/src/option.h +++ b/src/option.h @@ -429,7 +429,7 @@ EXTERN char_u *p_csprg; /* 'cscopeprg' * EXTERN int p_csre; /* 'cscoperelative' */ # ifdef FEAT_QUICKFIX EXTERN char_u *p_csqf; /* 'cscopequickfix' */ -# define CSQF_CMDS "sgdctefi" +# define CSQF_CMDS "sgdctefia" # define CSQF_FLAGS "+-0" # endif EXTERN int p_cst; /* 'cscopetag' */
--- a/src/testdir/Make_all.mak +++ b/src/testdir/Make_all.mak @@ -169,6 +169,7 @@ NEW_TESTS = test_arglist.res \ test_cdo.res \ test_channel.res \ test_cmdline.res \ + test_cscope.res \ test_farsi.res \ test_hardcopy.res \ test_history.res \
new file mode 100644 --- /dev/null +++ b/src/testdir/test_cscope.vim @@ -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