Created
October 26, 2009 09:26
-
-
Save thinca/218533 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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