Pass cwd to completer for filename completions

This commit is contained in:
Ben Jackson 2015-08-26 23:41:40 +01:00
parent b5bf25564c
commit fa32819d4f

View File

@ -188,6 +188,8 @@ class YouCompleteMe( object ):
self._omnicomp, wrapped_request_data ) self._omnicomp, wrapped_request_data )
return self._latest_completion_request return self._latest_completion_request
request_data[ 'working_dir' ] = os.getcwd()
self._AddExtraConfDataIfNeeded( request_data ) self._AddExtraConfDataIfNeeded( request_data )
if force_semantic: if force_semantic:
request_data[ 'force_semantic' ] = True request_data[ 'force_semantic' ] = True