Przeglądaj źródła

Fix traceback on quote in filename

Fixes #1109
Strahinja Val Markovic 10 lat temu
rodzic
commit
f1ebf51fcb
1 zmienionych plików z 1 dodań i 1 usunięć
  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 ) ) )