Skip to content

Instantly share code, notes, and snippets.

@thinca
Created October 26, 2009 09:26
Show Gist options
  • Save thinca/218533 to your computer and use it in GitHub Desktop.
Save thinca/218533 to your computer and use it in GitHub Desktop.
diff --git a/autoload/neocomplcache/plugin/include_complete.vim b/autoload/neocomplcache/plugin/include_complete.vim
index b3c2369..c5ad581 100644
--- a/autoload/neocomplcache/plugin/include_complete.vim
+++ b/autoload/neocomplcache/plugin/include_complete.vim
@@ -103,8 +103,9 @@ function! s:check_include(bufnumber)"{{{
for l:line in l:buflines"{{{
if l:line =~ l:pattern
let l:match_end = matchend(l:line, l:pattern)
- let l:eval = substitute(l:expr, 'v:fname', string(l:line[l:match_end :]), 'g')
- let l:filename = fnamemodify(findfile(matchstr(eval(l:eval), '\f\+'), l:path), ':p')
+ let l:eval = substitute(l:expr, 'v:fname', string(matchstr(l:line[l:match_end :], '\f\+')), 'g')
+ let l:filename = fnamemodify(findfile(eval(l:eval), l:path), ':p')
+
if filereadable(l:filename)
call add(l:include_files, l:filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment