parameters: (self, bufferName=None)
return_statement: return False
docstring: Returns True if window with name bufferName is contained in the layout, False otherwise.
              If bufferName is None, the currently selected window is checked.
docstring_summary: Returns True if window with name bufferName is contained in the layout, False otherwise.
              If bufferName is None, the currently selected window is checked.
docstring_tokens: Returns True if window with name bufferName is contained in the layout False otherwise . If bufferName is None the currently selected window is checked .
function: def contains(self, bufferName=None):
          """ Returns True if window with name bufferName is contained in the layout, False otherwise.
              If bufferName is None, the currently selected window is checked.
          """
          if not bufferName:
              bufferName = vim.current.buffer.name
  
          for p in self.panes:
              if bufferName is not None and bufferName.endswith(p):
                  return True
          return False
function_tokens: def contains ( self , bufferName = None ) : if not bufferName : bufferName = vim . current . buffer . name for p in self . panes : if bufferName is not None and bufferName . endswith ( p ) : return True return False