Fix traceback on quote in filename

Fixes #1109
This commit is contained in:
Strahinja Val Markovic 2014-07-31 10:28:44 -07:00
parent 221540e0b0
commit f1ebf51fcb

View File

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