Enforcing unicode in more vimsupport functions

This commit is contained in:
Val Markovic 2016-03-01 19:14:06 -08:00
parent 0187c6df5b
commit 80631b1aaf

View File

@ -319,8 +319,8 @@ def GetReadOnlyVimGlobals( force_python_objects = False ):
def VimExpressionToPythonType( vim_expression ):
result = vim.eval( vim_expression )
if not isinstance( result, str ):
return result
if not isinstance( result, str ) or isinstance( result, bytes ):
return ToUnicode( result )
try:
return int( result )
except ValueError: