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 -->
This commit is contained in:
zzbot 2018-02-20 02:26:04 -08:00 committed by GitHub
commit d27563d2f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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