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:
commit
d27563d2f1
@ -175,7 +175,7 @@ def CaptureVimCommand( command ):
|
|||||||
vim.command( 'redir => b:ycm_command' )
|
vim.command( 'redir => b:ycm_command' )
|
||||||
vim.command( 'silent! {}'.format( command ) )
|
vim.command( 'silent! {}'.format( command ) )
|
||||||
vim.command( 'redir END' )
|
vim.command( 'redir END' )
|
||||||
output = vim.eval( 'b:ycm_command' )
|
output = ToUnicode( vim.eval( 'b:ycm_command' ) )
|
||||||
vim.command( 'unlet b:ycm_command' )
|
vim.command( 'unlet b:ycm_command' )
|
||||||
return output
|
return output
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user