Minor changes addressing review comments.
This commit is contained in:
parent
b6bbe6388f
commit
fc745f74b3
@ -104,5 +104,6 @@ class BufferDict( dict ):
|
||||
|
||||
|
||||
def __missing__( self, key ):
|
||||
value = self[ key ] = Buffer( key, self._user_options )
|
||||
return value
|
||||
# Python does not allow to return assignment operation result directly
|
||||
new_value = self[ key ] = Buffer( key, self._user_options )
|
||||
return new_value
|
||||
|
@ -592,11 +592,6 @@ def CurrentFiletypes():
|
||||
return VimExpressionToPythonType( "&filetype" ).split( '.' )
|
||||
|
||||
|
||||
def GetBufferFiletypes( bufnr ):
|
||||
command = 'getbufvar({0}, "&ft")'.format( bufnr )
|
||||
return VimExpressionToPythonType( command ).split( '.' )
|
||||
|
||||
|
||||
def FiletypesForBuffer( buffer_object ):
|
||||
# NOTE: Getting &ft for other buffers only works when the buffer has been
|
||||
# visited by the user at least once, which is true for modified buffers
|
||||
|
@ -580,7 +580,7 @@ class YouCompleteMe( object ):
|
||||
#
|
||||
# Note: it is the server's responsibility to determine the frequency of
|
||||
# error/warning/prompts when receiving a FileReadyToParse event, but
|
||||
# it our responsibility to ensure that we only apply the
|
||||
# it is our responsibility to ensure that we only apply the
|
||||
# warning/error/prompt received once (for each event).
|
||||
current_buffer.MarkResponseHandled()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user