Enforcing unicode in more vimsupport functions
This commit is contained in:
parent
0187c6df5b
commit
80631b1aaf
@ -319,8 +319,8 @@ def GetReadOnlyVimGlobals( force_python_objects = False ):
|
|||||||
|
|
||||||
def VimExpressionToPythonType( vim_expression ):
|
def VimExpressionToPythonType( vim_expression ):
|
||||||
result = vim.eval( vim_expression )
|
result = vim.eval( vim_expression )
|
||||||
if not isinstance( result, str ):
|
if not isinstance( result, str ) or isinstance( result, bytes ):
|
||||||
return result
|
return ToUnicode( result )
|
||||||
try:
|
try:
|
||||||
return int( result )
|
return int( result )
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
Loading…
Reference in New Issue
Block a user