- Timestamp:
- Jan 23, 2007, 6:36:24 PM (18 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fmtext.c
r8fa9562 racee046 698 698 pair_content(pair, &oldfg, &oldbg); 699 699 if (cpmgr->pairs[oldfg+1][oldbg] == pair) { 700 700 cpmgr->pairs[oldfg+1][oldbg] = -1; 701 701 } 702 702 init_pair(pair, fg, bg); … … 704 704 cpmgr->used[pair] = 1; 705 705 } else { 706 // Skip the first COLORS, si cne they're static.706 // Skip the first COLORS, since they're static. 707 707 for(i = COLORS; i < COLOR_PAIRS; i++) { 708 709 710 711 708 if (0 == cpmgr->used[i]) { 709 pair = i; 710 break; 711 } 712 712 } 713 713 if (pair != -1) { 714 715 716 717 718 719 720 721 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; 722 722 } else { 723 724 723 // Fail to skipping background. 724 pair = fg; 725 725 } 726 726 }
Note: See TracChangeset
for help on using the changeset viewer.