~ubuntu-branches/ubuntu/natty/iselect/natty

« back to all changes in this revision

Viewing changes to iselect_browse.c

  • Committer: Bazaar Package Importer
  • Author(s): Denis Barbier
  • Date: 2001-12-17 00:02:42 UTC
  • Revision ID: james.westby@ubuntu.com-20011217000242-smpz9z44fopf4sm1
Tags: 1.2.0-5
* New maintainer (closes: Bug#119088).
* Prevent crash with empty input (closes: Bug#81159).
* Make /usr/share/doc/iselect/examples/scvs/scvs work with Term::ANSIColor
  instead of Term::Cap, and another fix was applied to deal with new
  versions of File::PathConvert (closes: Bug#98547).
* Add a keystroke to clear marks (closes: Bug#63156).
* Upgraded to standards version 3.5.6
* Remove Emacs crap from debian/changelog

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
    waddstr(sField, name);
332
332
 
333
333
    wmove(sField, 0, COLS-10);
334
 
    percent = (int)(((nAbsFirstLine+nRelMarked)*100)/nLines);
335
 
    if (1+nAbsFirstLine+nRelMarked == nLines)
 
334
    if ((1+nAbsFirstLine+nRelMarked == nLines) || nLines == 0)
336
335
        percent = 100;
 
336
    else
 
337
        percent = (int)(((nAbsFirstLine+nRelMarked)*100)/nLines);
337
338
    sprintf(ca, "%4d,%3d%%", 1+nAbsFirstLine+nRelMarked, percent);
338
339
    waddstr(sField, ca);
339
340
 
663
664
                            strcpy(msg, "No multi-line selection allowed.");
664
665
                     }
665
666
                 }
 
667
                 else if (c == 'C') {
 
668
                     if (multiselect) {
 
669
                         for (i = nFirstLine; i < nLastLine; i++)
 
670
                             spaLines[i]->fSelected = FALSE;
 
671
                     }
 
672
                     else {
 
673
                            strcpy(msg, "No multi-line selection.");
 
674
                     }
 
675
                 }
666
676
                 else if (c == 'q') {
667
677
                     bEOI = TRUE;
668
678
                     bQuit = TRUE;