Skip to content

Commit 8a5d8ec

Browse files
committed
Stop trying queries after finding filepattern match
1 parent 7b1448c commit 8a5d8ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugin/angular.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ function! s:FindFileBasedOnAngularServiceUnderCursor(cmd) abort
151151
for query in l:queries
152152
try
153153
call <SID>Find(query, a:cmd)
154+
break
154155
catch 'AngularQueryNotFound'
155156
if (query == l:filethatmayexistngdotcase)
156157
echo "angular.vim says: '".join(l:queries, ', ')."' not found"

0 commit comments

Comments
 (0)