Explorar o código

reverted back to the GetBufferOption

Davit Samvelyan %!s(int64=11) %!d(string=hai) anos
pai
achega
b4b94429dd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      python/ycm/vimsupport.py

+ 2 - 2
python/ycm/vimsupport.py

@@ -72,7 +72,7 @@ def GetBufferOption( buffer_object, option ):
 
 
 def BufferModified( buffer_object ):
-  return buffer_object.options[ 'mod' ]
+  return bool( int( GetBufferOption( buffer_object, 'mod' ) ) )
 
 
 def GetUnsavedAndCurrentBufferData():
@@ -240,7 +240,7 @@ def VimExpressionToPythonType( vim_expression ):
 
 
 def HiddenEnabled( buffer_object ):
-  return vim.options[ 'hid' ]
+  return bool( int( GetBufferOption( buffer_object, 'hid' ) ) )
 
 
 def BufferIsUsable( buffer_object ):