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 269241

Summary: Impossible to highlight till the end of (visual) line using lexer-based coloring
Product: editor Reporter: Svata Dedic <sdedic>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Svata Dedic 2016-12-05 15:09:50 UTC
It is not possible to extend highlight past the newline (till the end of the visual line) in the editor. If the highlight defines a background, then the editor changes background just up to the newline, which looks ugly.

This was fixed in trunk as http://hg.netbeans.org/jet-main/rev/35c506a540e7 and could be backported to NB-8.2
Comment 1 Svata Dedic 2016-12-09 20:59:28 UTC
Backported as 606211bc9192
Comment 2 Miloslav Metelka 2016-12-12 12:15:21 UTC
I think that the patch is ok.
It could possibly be composed to only query token.getProperty("highlight.block") if the token really contains the newline but most of the tokens are default tokens anyway that do not carry actual properties so the performance gain would be minimal so let's have it as it is now.
Comment 3 Jiri Prox 2016-12-14 12:45:14 UTC
verified