Parcourir la source

Convert Vim command output to Unicode

micbou il y a 7 ans
Parent
commit
5d2258bdd4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      python/ycm/vimsupport.py

+ 1 - 1
python/ycm/vimsupport.py

@@ -175,7 +175,7 @@ def CaptureVimCommand( command ):
   vim.command( 'redir => b:ycm_command' )
   vim.command( 'silent! {}'.format( command ) )
   vim.command( 'redir END' )
-  output = vim.eval( 'b:ycm_command' )
+  output = ToUnicode( vim.eval( 'b:ycm_command' ) )
   vim.command( 'unlet b:ycm_command' )
   return output