@@ -2050,6 +2050,7 @@ function! s:ValidateGrepCommand()
2050
2050
let commandParams = s: GetGrepCommandParameters ()
2051
2051
if empty (commandParams)
2052
2052
call s: Error (" Cannot proceed; the configured 'grepprg' setting is not a known program" )
2053
+ call s: Error (" Select a supported program with :GrepProgram" )
2053
2054
return 0
2054
2055
endif
2055
2056
@@ -2685,28 +2686,28 @@ function! s:ConfigureGrepCommandParameters()
2685
2686
\ ' opt_bool_isselffiltering' : ' 1' ,
2686
2687
\ })
2687
2688
2688
- call s: RegisterGrepProgram (" findstr" , {
2689
- \ ' req_str_programargs' : ' /n' ,
2690
- \ ' req_bool_supportsexclusions' : ' 0' ,
2691
- \ ' req_str_recurse' : ' /S' ,
2692
- \ ' req_str_caseignore' : ' /I' ,
2693
- \ ' req_str_casematch' : ' ' ,
2694
- \ ' opt_str_warnonuse' : ' The findstr program is buggy and not-recommended for use' ,
2695
- \ ' opt_str_patternprefix' : ' ' ,
2696
- \ ' opt_str_patternpostfix' : ' ' ,
2697
- \ ' opt_str_wholewordprefix' : ' "\<' ,
2698
- \ ' opt_str_wholewordpostfix' : ' \>"' ,
2699
- \ ' opt_str_wholewordoption' : ' ' ,
2700
- \ ' req_str_escapespecialcharacters' : " \^ $#.*" ,
2701
- \ ' opt_str_escapespecialcharacterstwice' : " " ,
2702
- \ ' opt_str_mapexclusionsexpression' : ' ' ,
2703
- \ ' opt_bool_filtertargetswithnofiles' : ' 1' ,
2704
- \ ' opt_bool_bufferdirsearchallowed' : ' 1' ,
2705
- \ ' opt_str_suppresserrormessages' : ' ' ,
2706
- \ ' opt_bool_directoryneedsbackslash' : ' 1' ,
2707
- \ ' opt_bool_isinherentlyrecursive' : ' 0' ,
2708
- \ ' opt_bool_isselffiltering' : ' 0' ,
2709
- \ })
2689
+ " call s:RegisterGrepProgram("findstr", {
2690
+ " \ 'req_str_programargs': '/n',
2691
+ " \ 'req_bool_supportsexclusions': '0',
2692
+ " \ 'req_str_recurse': '/S',
2693
+ " \ 'req_str_caseignore': '/I',
2694
+ " \ 'req_str_casematch': '',
2695
+ " \ 'opt_str_warnonuse': 'The findstr program is buggy and not-recommended for use',
2696
+ " \ 'opt_str_patternprefix': '',
2697
+ " \ 'opt_str_patternpostfix': '',
2698
+ " \ 'opt_str_wholewordprefix': '"\<',
2699
+ " \ 'opt_str_wholewordpostfix': '\>"',
2700
+ " \ 'opt_str_wholewordoption': '',
2701
+ " \ 'req_str_escapespecialcharacters': "\^$#.*",
2702
+ " \ 'opt_str_escapespecialcharacterstwice': "",
2703
+ " \ 'opt_str_mapexclusionsexpression': '',
2704
+ " \ 'opt_bool_filtertargetswithnofiles': '1',
2705
+ " \ 'opt_bool_bufferdirsearchallowed': '1',
2706
+ " \ 'opt_str_suppresserrormessages': '',
2707
+ " \ 'opt_bool_directoryneedsbackslash': '1',
2708
+ " \ 'opt_bool_isinherentlyrecursive': '0',
2709
+ " \ 'opt_bool_isselffiltering': '0',
2710
+ " \ })
2710
2711
endfunction
2711
2712
" }}}
2712
2713
" GetGrepCommandParameters {{{
0 commit comments