Merge pull request #1070 from evansb/master

Fix unicode-character filename bug.
This commit is contained in:
Val Markovic 2014-07-21 15:31:45 -07:00
commit fd324cbcbb

View File

@ -103,7 +103,7 @@ def GetUnsavedAndCurrentBufferData():
def GetBufferNumberForFilename( filename, open_file_if_needed = True ): def GetBufferNumberForFilename( filename, open_file_if_needed = True ):
return GetIntValue( "bufnr('{0}', {1})".format( return GetIntValue( u"bufnr('{0}', {1})".format(
os.path.realpath( filename ), os.path.realpath( filename ),
int( open_file_if_needed ) ) ) int( open_file_if_needed ) ) )