diff --git a/python/ycm/vimsupport.py b/python/ycm/vimsupport.py index 3913549c..586a269f 100644 --- a/python/ycm/vimsupport.py +++ b/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