~ubuntu-branches/ubuntu/vivid/tin/vivid

« back to all changes in this revision

Viewing changes to src/select.c

  • Committer: Package Import Robot
  • Author(s): Marco d'Itri
  • Date: 2012-01-06 15:04:11 UTC
  • mfrom: (1.2.17)
  • Revision ID: package-import@ubuntu.com-20120106150411-vftxaked1sscxt1t
Tags: 1:2.1.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *  Module    : select.c
4
4
 *  Author    : I. Lea & R. Skrenta
5
5
 *  Created   : 1991-04-01
6
 
 *  Updated   : 2011-03-25
 
6
 *  Updated   : 2011-11-09
7
7
 *  Notes     :
8
8
 *
9
 
 * Copyright (c) 1991-2011 Iain Lea <iain@bricbrac.de>, Rich Skrenta <skrenta@pbm.com>
 
9
 * Copyright (c) 1991-2012 Iain Lea <iain@bricbrac.de>, Rich Skrenta <skrenta@pbm.com>
10
10
 * All rights reserved.
11
11
 *
12
12
 * Redistribution and use in source and binary forms, with or without
342
342
                                break;
343
343
 
344
344
                        case GLOBAL_OPTION_MENU:
345
 
                                config_page(CURR_GROUP.name);
 
345
                                config_page(selmenu.max ? CURR_GROUP.name : NULL);
346
346
                                show_selection_page();
347
347
                                break;
348
348
 
639
639
                strcpy(tmp, "    #");
640
640
        else if (active[my_group[i]].newsrc.num_unread) {
641
641
                int getart_limit;
642
 
                long num_unread;
 
642
                t_artnum num_unread;
643
643
 
644
644
                getart_limit = cmdline.args & CMDLINE_GETART_LIMIT ? cmdline.getart_limit : tinrc.getart_limit;
645
645
                num_unread = active[my_group[i]].newsrc.num_unread;
674
674
                active_desc = char2wchar_t(active[n].description);
675
675
 
676
676
        if (active_name && tinrc.abbreviate_groupname) {
677
 
                if (show_description && !active_desc)
678
 
                        active_name2 = abbr_wcsgroupname(active_name, (size_t) (groupname_len + blank_len));
679
 
                else
680
 
                        active_name2 = abbr_wcsgroupname(active_name, (size_t) groupname_len);
681
 
 
 
677
                active_name2 = abbr_wcsgroupname(active_name, (size_t) groupname_len);
682
678
                free(active_name);
683
679
        } else
684
680
                active_name2 = active_name;
720
716
 
721
717
        FreeIfNeeded(name_buf);
722
718
#else
723
 
        if (tinrc.abbreviate_groupname) {
724
 
                if (show_description && !active[n].description)
725
 
                        active_name = abbr_groupname(active[n].name, (size_t) (groupname_len + blank_len));
726
 
                else
727
 
                        active_name = abbr_groupname(active[n].name, (size_t) groupname_len);
728
 
        } else
 
719
        if (tinrc.abbreviate_groupname)
 
720
                active_name = abbr_groupname(active[n].name, (size_t) groupname_len);
 
721
        else
729
722
                active_name = my_strdup(active[n].name);
730
723
 
731
724
        if (show_description) {