# HG changeset patch # User Sam Harwell # Date 1326476574 21600 # Branch default # Node ID 5a889930f2f39b348b4e7ee127da0fd47e522ce5 # Parent 425b05b41a12a18eac9ca38ac7f672a8fee406ee Display all tab characters when Show Non-printable Characters is enabled Issue #207286 - Show Non-printable Characters: consecutive tabs display as one diff -r 425b05b41a12 -r 5a889930f2f3 editor.lib2/src/org/netbeans/modules/editor/lib2/view/HighlightsViewFactory.java --- a/editor.lib2/src/org/netbeans/modules/editor/lib2/view/HighlightsViewFactory.java Thu Jan 12 13:23:39 2012 -0600 +++ b/editor.lib2/src/org/netbeans/modules/editor/lib2/view/HighlightsViewFactory.java Fri Jan 13 11:42:54 2012 -0600 @@ -173,12 +173,7 @@ return new NewlineView(startOffset, attrs); } else { // Regular view with possible highlight(s) or tab view if (startOffset == nextTabOffset) { // Create TabView - int tabsEndOffset; - for (tabsEndOffset = nextTabOffset + 1; tabsEndOffset < lineEndOffset - 1; tabsEndOffset++) { - if (docText.charAt(tabsEndOffset) != '\t') { - break; - } - } + int tabsEndOffset = nextTabOffset + 1; AttributeSet attrs; if (limitOffset < tabsEndOffset) { attrs = hList.cut(limitOffset);