From 5d2258bdd4529a406d7413e6d22d577be909cc1c Mon Sep 17 00:00:00 2001 From: micbou Date: Tue, 20 Feb 2018 10:35:54 +0100 Subject: [PATCH] Convert Vim command output to Unicode --- python/ycm/vimsupport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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