From b4b94429ddfe445cd75c0740c9216bfaa425f399 Mon Sep 17 00:00:00 2001 From: Davit Samvelyan Date: Sun, 23 Mar 2014 12:33:27 +0400 Subject: [PATCH] reverted back to the GetBufferOption --- python/ycm/vimsupport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ycm/vimsupport.py b/python/ycm/vimsupport.py index 65fc5618..6782c8f6 100644 --- a/python/ycm/vimsupport.py +++ b/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 ):