Parent Directory | Revision Log | Patch
revision 1.13 by rabbit78, Fri Jul 29 10:47:16 2005 UTC | revision 1.14 by abalkiss, Fri Sep 30 17:49:48 2005 UTC | |
---|---|---|
# | Line 132 public class PlainDocument extends Abstr | Line 132 public class PlainDocument extends Abstr |
132 | // collapse elements if the removal spans more than 1 line | // collapse elements if the removal spans more than 1 line |
133 | Element newEl = createLeafElement(rootElement, | Element newEl = createLeafElement(rootElement, |
134 | SimpleAttributeSet.EMPTY, | SimpleAttributeSet.EMPTY, |
135 | start, end - len); | start, end); |
136 | rootElement.replace(i1, i2 - i1, new Element[]{ newEl }); | rootElement.replace(i1, i2 - i1 + 1, new Element[]{ newEl }); |
137 | } | } |
138 | } | } |
139 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |