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 267793

Summary: Regexp - selection highlight
Product: editor Reporter: amobilia
Component: SearchAssignee: Milutin Kristofic <mkristofic>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: Example code
Highlight screenshoot

Description amobilia 2016-08-31 02:23:26 UTC
Created attachment 161835 [details]
Example code

With the example code :
1/ Search for a regular expression : "[body]{4}"
2/ Line 13 is selected (in grey) and selection go to line 14 too

Expected : only "body" on line 13 should be highlighted

Note : when using previous / next, the problem doesn't occurs
Comment 1 amobilia 2016-08-31 02:24:20 UTC
Created attachment 161836 [details]
Highlight screenshoot
Comment 2 amobilia 2016-08-31 02:26:25 UTC
Disable / enable "Highlight matches" make the problem occurs.

Question : the highlight shouldn't provide only orange highlight (and not a grey selection ?)
Comment 3 Milutin Kristofic 2016-10-13 14:10:03 UTC
Thank you, the selection length was wrong in regexp search. 
http://hg.netbeans.org/jet-main/rev/1aeb60a88a50
Comment 4 Quality Engineering 2016-10-15 02:13:43 UTC
Integrated into 'main-silver', will be available in build *201610150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1aeb60a88a50
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #267793 - Regexp - selection highlight
Comment 5 amobilia 2016-10-20 00:30:39 UTC
Thanks ! :)