Changeset 6772d19 for fmtext.c


Ignore:
Timestamp:
Jul 31, 2010, 7:11:42 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
e0e0e5a
Parents:
35a30f9
git-author:
David Benjamin <davidben@mit.edu> (07/25/10 17:28:27)
git-committer:
David Benjamin <davidben@mit.edu> (07/31/10 19:11:42)
Message:
Add a test case for owl_fmtext with two failures

When appending text, we get the textlen wrong. We also fail to correctly
consider attributes in owl_fmtext_num_lines. This also adds tests for
owl_fmtext_truncate_cols and owl_fmtext_truncate_lines as they are
finicky.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    r423adcb r6772d19  
    521521}
    522522
     523int owl_fmtext_num_bytes(const owl_fmtext *f)
     524{
     525  return(f->textlen);
     526}
     527
    523528/* set the charater at 'index' to be 'char'.  If index is out of
    524529 * bounds don't do anything. If c or char at index is not ASCII, don't
Note: See TracChangeset for help on using the changeset viewer.