def current_editor_buffer(self):
        """
        Return the `EditorBuffer` that is currently active.
        """
        current_buffer = self.application.current_buffer

        # Find/return the EditorBuffer with this name.
        for b in self.window_arrangement.editor_buffers:
            if b.buffer == current_buffer:
                return b
def current_editor_buffer ( self ) : current_buffer = self . application . current_buffer for b in self . window_arrangement . editor_buffers : if b . buffer == current_buffer : return b
Return the `EditorBuffer` that is currently active.