Skip to content

Commit

Permalink
disable man page searching for now
Browse files Browse the repository at this point in the history
  • Loading branch information
RJ committed Jan 4, 2012
1 parent 31f99c5 commit 0dfb388
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions autoload/erlangcomplete.vim
Expand Up @@ -123,12 +123,13 @@ function s:erlangFindExternalFunc(module, base)
" if someone have better idea, please change it " if someone have better idea, please change it
let description = '' let description = ''
" Don't look man pages if the module is present in the current directory " Don't look man pages if the module is present in the current directory
if g:erlangCompletionDisplayDoc != 0 && !filereadable(a:module . '.erl') "if g:erlangCompletionDisplayDoc != 0 && !filereadable(a:module . '.erl')
let system_command = g:erlangCompletionGrep . ' -A 1 "\.B" ' . file_path . ' | grep -EZo "\<' . " let system_command = g:erlangCompletionGrep . ' -A 1 "\.B" ' . file_path . ' | grep -EZo "\<' .
\ function_name . '\>\((\w+, ){' . number_of_comma . '}[^),]*\) -> .*"' "\ function_name . '\>\((\w+, ){' . number_of_comma . '}[^),]*\) -> .*" 2> /dev/null '
let description = system(system_command) " let description = system(system_command)
let description = description[:-2] " let description = description[:-2]
endif "endif
let description = ''
if description == '' if description == ''
let description = element " if function doesn't have description e.g. lists:rmerge, put rmerge/2 instead let description = element " if function doesn't have description e.g. lists:rmerge, put rmerge/2 instead
endif endif
Expand Down

0 comments on commit 0dfb388

Please sign in to comment.