Pārlūkot izejas kodu

Fix traceback on quote in filename

Fixes #1109
Strahinja Val Markovic 10 gadi atpakaļ
vecāks
revīzija
f1ebf51fcb
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      python/ycm/vimsupport.py

+ 1 - 1
python/ycm/vimsupport.py

@@ -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 ) ) )