This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 188024 - single last character with different attributes not rendered
Summary: single last character with different attributes not rendered
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: ivan
URL:
Keywords:
Depends on:
Blocks: 187345
  Show dependency tree
 
Reported: 2010-06-24 07:24 UTC by ivan
Modified: 2010-12-17 06:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
C program to reproduce problem (900 bytes, text/plain)
2010-06-24 07:24 UTC, ivan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ivan 2010-06-24 07:24:58 UTC
Created attachment 100374 [details]
C program to reproduce problem

The attached program reproduces the problem. Compile and run it under Term.
It's supposed to produce:
1. abc, all underlined
2. abcd, all underlined with d bold
3. abcde, all underlined with de bold
4. ad, all underlined with d bold.

In cases 2 and 4 it fails to render d.
A sequence of characters with the same attributes is known as a 'run'.
Another way of describing this bug is that the last run of a line,
if it's 1 char wide, will not get rendered.

This was discovered while investigating bug #187345
Comment 1 ivan 2010-12-16 08:44:29 UTC
Changeset: 6fc071c339aa

        An off-by-one error in the main loop termination test in
        Term.paint_line_new().
Comment 2 Quality Engineering 2010-12-17 06:17:26 UTC
Integrated into 'main-golden', will be available in build *201012170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6fc071c339aa
User: ivan@netbeans.org
Log: Fix for bug #188024 -  single last character with different attributes not rendered