Fix unicode warning when unloading buffer on Python 2

This commit is contained in:
micbou 2017-07-05 01:00:33 +02:00
parent 2afc0d5f5f
commit 1e935db4b7
No known key found for this signature in database
GPG Key ID: C7E8FD1F3BDA1E05

View File

@ -374,7 +374,9 @@ class YouCompleteMe( object ):
def OnBufferUnload( self, deleted_buffer_file ): def OnBufferUnload( self, deleted_buffer_file ):
SendEventNotificationAsync( 'BufferUnload', filepath = deleted_buffer_file ) SendEventNotificationAsync(
'BufferUnload',
filepath = utils.ToUnicode( deleted_buffer_file ) )
def OnBufferVisit( self ): def OnBufferVisit( self ):