Skip to content

Commit b5be208

Browse files
committed
Check the default user pattern when creating the grep dictionary
1 parent 5f6fd16 commit b5be208

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugin/EasyGrep.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,7 @@ endfunction
15461546
" CreateGrepDictionary {{{
15471547
function! s:CreateGrepDictionary()
15481548
if exists("s:Dict")
1549+
call s:CheckDefaultUserPattern()
15491550
return
15501551
endif
15511552

@@ -1871,7 +1872,6 @@ endfunction
18711872
" Extension Tracking {{{
18721873
" SetCurrentExtension {{{
18731874
function! s:SetCurrentExtension()
1874-
call s:CreateGrepDictionary()
18751875
if !empty(&buftype)
18761876
return
18771877
endif
@@ -1889,6 +1889,7 @@ function! s:SetCurrentExtension()
18891889
endif
18901890
endif
18911891

1892+
call s:CreateGrepDictionary()
18921893
let tempList = s:GetFileTargetList_Tracked()
18931894

18941895
" When in tracked mode, change the tracked extension if it isn't
@@ -3541,9 +3542,8 @@ if !exists("g:EasyGrepFilesToExclude")
35413542
let g:EasyGrepFilesToExclude="*.swp,*~"
35423543
endif
35433544

3544-
" EasyGrepDefaultUserPattern {{{
3545+
" CheckDefaultUserPattern {{{
35453546
function! s:CheckDefaultUserPattern()
3546-
call s:CreateGrepDictionary()
35473547
let error = ""
35483548
let userModeAndEmpty = (g:EasyGrepMode == s:EasyGrepModeUser) && empty(s:Dict[s:EasyGrepModeUser][1])
35493549
if exists("g:EasyGrepDefaultUserPattern")

0 commit comments

Comments
 (0)