Convert Vim command output to Unicode

This commit is contained in:
micbou 2018-02-20 10:35:54 +01:00
parent 54a4ecf2d9
commit 5d2258bdd4
No known key found for this signature in database
GPG Key ID: C7E8FD1F3BDA1E05

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