浏览代码

Convert Vim command output to Unicode

micbou 7 年之前
父节点
当前提交
5d2258bdd4
共有 1 个文件被更改,包括 1 次插入1 次删除
  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