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.

View | Details | Raw Unified | Return to bug 207286
Collapse All | Expand All

(-)a/editor.lib2/src/org/netbeans/modules/editor/lib2/view/HighlightsViewFactory.java (-6 / +1 lines)
Lines 173-184 Link Here
173
            return new NewlineView(startOffset, attrs);
173
            return new NewlineView(startOffset, attrs);
174
        } else { // Regular view with possible highlight(s) or tab view
174
        } else { // Regular view with possible highlight(s) or tab view
175
            if (startOffset == nextTabOffset) { // Create TabView
175
            if (startOffset == nextTabOffset) { // Create TabView
176
                int tabsEndOffset;
176
                int tabsEndOffset = nextTabOffset + 1;
177
                for (tabsEndOffset = nextTabOffset + 1; tabsEndOffset < lineEndOffset - 1; tabsEndOffset++) {
178
                    if (docText.charAt(tabsEndOffset) != '\t') {
179
                        break;
180
                    }
181
                }
182
                AttributeSet attrs;
177
                AttributeSet attrs;
183
                if (limitOffset < tabsEndOffset) {
178
                if (limitOffset < tabsEndOffset) {
184
                    attrs = hList.cut(limitOffset);
179
                    attrs = hList.cut(limitOffset);

Return to bug 207286