Changeset acee046


Ignore:
Timestamp:
Jan 23, 2007, 6:36:24 PM (17 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
0a3f04d
Parents:
65581e9
git-author:
Nelson Elhage <nelhage@mit.edu> (01/23/07 18:34:01)
git-committer:
Nelson Elhage <nelhage@mit.edu> (01/23/07 18:36:24)
Message:
tabs must die.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    r8fa9562 racee046  
    698698      pair_content(pair, &oldfg, &oldbg);
    699699      if (cpmgr->pairs[oldfg+1][oldbg] == pair) {
    700         cpmgr->pairs[oldfg+1][oldbg] = -1;
     700        cpmgr->pairs[oldfg+1][oldbg] = -1;
    701701      }
    702702      init_pair(pair, fg, bg);
     
    704704      cpmgr->used[pair] = 1;
    705705    } else {
    706       // Skip the first COLORS, sicne they're static.
     706      // Skip the first COLORS, since they're static.
    707707      for(i = COLORS; i < COLOR_PAIRS; i++) {
    708         if (0 == cpmgr->used[i]) {
    709           pair = i;
    710           break;
    711         }
     708        if (0 == cpmgr->used[i]) {
     709          pair = i;
     710          break;
     711        }
    712712      }
    713713      if (pair != -1) {
    714         short oldfg, oldbg;
    715         pair_content(pair, &oldfg, &oldbg);
    716         if (cpmgr->pairs[oldfg+1][oldbg] == pair) {
    717           cpmgr->pairs[oldfg+1][oldbg] = -1;
    718         }
    719         init_pair(pair, fg, bg);
    720         cpmgr->pairs[fg+1][bg] = pair;
    721         cpmgr->used[pair] = 1;
     714        short oldfg, oldbg;
     715        pair_content(pair, &oldfg, &oldbg);
     716        if (cpmgr->pairs[oldfg+1][oldbg] == pair) {
     717          cpmgr->pairs[oldfg+1][oldbg] = -1;
     718        }
     719        init_pair(pair, fg, bg);
     720        cpmgr->pairs[fg+1][bg] = pair;
     721        cpmgr->used[pair] = 1;
    722722      } else {
    723         // Fail to skipping background.
    724         pair = fg;
     723        // Fail to skipping background.
     724        pair = fg;
    725725      }
    726726    }
Note: See TracChangeset for help on using the changeset viewer.