code: def display_buffer(self, buffer, redraw=True):
          
          logger.debug("display buffer %r", buffer)
          self.buffer_movement_history.append(buffer)
          self.current_buffer = buffer
          self._set_main_widget(buffer.widget, redraw=redraw)
docs: display provided buffer
  
          :param buffer: Buffer
          :return: