populate_feed_win (Raggle::Interfaces::NcursesInterface)

    # File raggle, line 3496
          def NcursesInterface::populate_feed_win
            win = $wins[NcursesInterface::get_win_id('feed')]
            return if win == -1  # no windows open - why populate?

            win.items.clear

            $config['feeds'].each_with_index { |feed, i|
              if $category && $category !~ /all/i
                next unless feed['category'] =~ /#$category/i
              end

              # build title
              if feed['title']
                title = feed['title'].strip
              else
                title = ($config['default_feed_title'] || _('Untitled Feed')).dup
              end

              # count unread items and total size
              unread_count = size = 0
              feed['items'].each { |item|
                unread_count += 1 unless item['read?'] or item['visible'] == false
                size += 1 unless item['visible'] == false
              } if feed['items']
              title << " (#{unread_count}/#{size})"

              win.items << {
                'title'       => title,
                'feed'        => i,
                'read?'       => unread_count == 0,
                'item_count'  => feed['items'].size,
                'updated'     => feed['updated'],
              }
            }
            win.draw_items
            $wins[$a_win].draw_items  # so feed window doesn't cover active win
          end