Index: DocCache.java =================================================================== RCS file: /cvs/editor/libsrc/org/netbeans/editor/DocCache.java,v retrieving revision 1.24 diff -c -r1.24 DocCache.java *** DocCache.java 20 Dec 2000 16:15:08 -0000 1.24 --- DocCache.java 9 May 2002 12:23:29 -0000 *************** *** 500,505 **** --- 500,515 ---- throwPosException(pos); } if (pos + len > getDocLenImpl()) { + if (pos + len == getDocLenImpl() + 1) { // fix of #17061 - append '\n' + if (len == 0) { + return; + } + len--; + ret[offset + len] = '\n'; + read(pos, ret, offset, len, frag); + return; + } // end of fix #17061 + throwPosException(pos + len); } if (directMode) {