view src/testdir/test_cscope.vim @ 9738:6818e3c96473 v7.4.2144

commit https://github.com/vim/vim/commit/796aa9c804f09276bd3cc45123f4a191a001dec2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 2 21:41:28 2016 +0200 patch 7.4.2144 Problem: On MS-Windows quickix does not handle a line with 1023 bytes ending in CR-LF properly. Solution: Don't consider CR a line break. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Aug 2016 21:45:05 +0200
parents da98db362fef
children ab96eb561a7e
line wrap: on
line source

" 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