code: def _get_menu_width(self, max_width, complete_state):
          
          return min(max_width, max(self.MIN_WIDTH, max(get_cwidth(c.display)
                     for c in complete_state.current_completions) + 2))
docs: Return the width of the main column.