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 - Regexp - selection highlight
Summary: Regexp - selection highlight
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-31 02:23 UTC by amobilia
Modified: 2016-10-20 00:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example code (555 bytes, text/html)
2016-08-31 02:23 UTC, amobilia
Details
Highlight screenshoot (38.01 KB, image/png)
2016-08-31 02:24 UTC, amobilia
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ! :)