@@ -702,7 +702,7 @@ endfunction
702
702
" ChooseGrepProgram {{{
703
703
function ! <sid> ChooseGrepProgram (... )
704
704
705
- let programNames = sort (keys (s: commandParamsDict ))
705
+ let programNames = sort (keys (g: EasyGrep_commandParamsDict ))
706
706
707
707
if a: 0 > 0
708
708
let grepChoiceStr = a: 1
@@ -758,13 +758,13 @@ function! s:SetGrepCommand(grepChoice)
758
758
else
759
759
let g: EasyGrepCommand = 1
760
760
761
- if ! has_key (s: commandParamsDict , a: grepChoice )
761
+ if ! has_key (g: EasyGrep_commandParamsDict , a: grepChoice )
762
762
return 0
763
763
endif
764
764
765
765
let args = " "
766
- if len (s: commandParamsDict [a: grepChoice ][" req_str_programargs" ])
767
- let args = ' \ ' .escape (s: commandParamsDict [a: grepChoice ][" req_str_programargs" ], ' ' )
766
+ if len (g: EasyGrep_commandParamsDict [a: grepChoice ][" req_str_programargs" ])
767
+ let args = ' \ ' .escape (g: EasyGrep_commandParamsDict [a: grepChoice ][" req_str_programargs" ], ' ' )
768
768
endif
769
769
exe " set grepprg=" .a: grepChoice .args
770
770
endif
@@ -2253,21 +2253,21 @@ endfunction
2253
2253
" }}}
2254
2254
" RegisterGrepProgram {{{
2255
2255
function ! s: RegisterGrepProgram (programName, programSettingsDict)
2256
- if ! exists (" s:commandParamsDict " )
2257
- let s: commandParamsDict = {}
2256
+ if ! exists (" g:EasyGrep_commandParamsDict " )
2257
+ let g: EasyGrep_commandParamsDict = {}
2258
2258
endif
2259
2259
2260
- if has_key (s: commandParamsDict , a: programName )
2260
+ if has_key (g: EasyGrep_commandParamsDict , a: programName )
2261
2261
call EasyGrep#Error (" Cannot register '" .a: programName ." ' because it is already registered" )
2262
2262
return
2263
2263
endif
2264
2264
2265
- let s: commandParamsDict [a: programName ] = a: programSettingsDict
2265
+ let g: EasyGrep_commandParamsDict [a: programName ] = a: programSettingsDict
2266
2266
endfunction
2267
2267
" }}}
2268
2268
" ConfigureGrepCommandParameters {{{
2269
2269
function ! s: ConfigureGrepCommandParameters ()
2270
- if exists (" s:commandParamsDict " )
2270
+ if exists (" g:EasyGrep_commandParamsDict " )
2271
2271
return
2272
2272
endif
2273
2273
@@ -2364,7 +2364,7 @@ function! s:ConfigureGrepCommandParameters()
2364
2364
\ ' opt_bool_nofiletargets' : ' 0' ,
2365
2365
\ })
2366
2366
2367
- call s: RegisterGrepProgram (" ack-grep" , s: commandParamsDict [" ack" ])
2367
+ call s: RegisterGrepProgram (" ack-grep" , g: EasyGrep_commandParamsDict [" ack" ])
2368
2368
2369
2369
call s: RegisterGrepProgram (" ag" , {
2370
2370
\ ' req_str_programargs' : ' --nogroup --nocolor --column' ,
@@ -2462,15 +2462,15 @@ endfunction
2462
2462
" GetGrepCommandParameters {{{
2463
2463
function ! s: GetGrepCommandParameters ()
2464
2464
if s: IsCommandVimgrep ()
2465
- return s: commandParamsDict [" vimgrep" ]
2465
+ return g: EasyGrep_commandParamsDict [" vimgrep" ]
2466
2466
endif
2467
2467
2468
2468
let programName = s: GetGrepProgramName ()
2469
- if ! has_key (s: commandParamsDict , programName)
2469
+ if ! has_key (g: EasyGrep_commandParamsDict , programName)
2470
2470
return {}
2471
2471
endif
2472
2472
2473
- return s: commandParamsDict [programName]
2473
+ return g: EasyGrep_commandParamsDict [programName]
2474
2474
endfunction
2475
2475
" }}}
2476
2476
" GetGrepCommandLine {{{
0 commit comments