Browse Source

Auto merge of #2924 - micbou:capture-vim-command-unicode, r=puremourning

[READY] Convert Vim command output to Unicode

Forgot to do that in PR https://github.com/Valloric/YouCompleteMe/pull/2921.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2924)
<!-- Reviewable:end -->
zzbot 7 years ago
parent
commit
d27563d2f1
1 changed files with 1 additions and 1 deletions
  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