From f1ebf51fcbe9570d26d148050bc81587c44ab452 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Thu, 31 Jul 2014 10:28:44 -0700 Subject: [PATCH] Fix traceback on quote in filename Fixes #1109 --- python/ycm/vimsupport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/vimsupport.py b/python/ycm/vimsupport.py index 8fd4a01a..a97924e6 100644 --- a/python/ycm/vimsupport.py +++ b/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 ) ) )