Strahinja Val Markovic 11 anni fa
parent
commit
b6c311c4dd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      python/ycm/vimsupport.py

+ 1 - 1
python/ycm/vimsupport.py

@@ -53,7 +53,7 @@ def GetBufferOption( buffer_object, option ):
   if hasattr( buffer_object, 'options' ):
     return buffer_object.options[ option ]
 
-  to_eval = 'getbufvar({0}, "&{1}")'.format( buffer.number, option )
+  to_eval = 'getbufvar({0}, "&{1}")'.format( buffer_object.number, option )
   return GetVariableValue( to_eval )