Bug 35444

Summary: Too many lines selected when pressing Ctrl+F
Product: [Eclipse Project] JDT Reporter: Oyvind Harboe <oyvind.harboe>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard: stalebug

Description Oyvind Harboe CLA 2003-03-21 03:56:49 EST
- Select first line
- press ctrl-f
- Two lines are highlighted in grey

Now try:

- Select a single word
- press ctrl-f
- That single word is highlighted in blue

Is this intentional?


The reason I reported this is that I'm trying to narrow down "bleeding yellow 
highlighting", and perhaps this might be a clue to something.

public class Foo
{
	public void xxx()
	{
	}
}
Comment 1 Adam Kiezun CLA 2003-03-21 05:28:02 EST
yes, this is what is called 'scope' (in the Find dialog)
Comment 2 Dani Megert CLA 2003-06-16 06:12:18 EDT
This is not a line highlighting problem: when you press Ctrl+F while there's a
selection it selects the range in which text will be searched and in the Find
dialog it selects "Search in selected lines"

If you select a line, the cursor is probably at the beginning of the second line
and therefore 2 lines get selected.

We can change the code to select only one line if the cursor is at the beginning
of a line.
Comment 3 Dani Megert CLA 2003-06-16 06:14:44 EDT
changing summary.
Comment 4 Eclipse Genie CLA 2020-06-07 07:35:31 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Eclipse Genie CLA 2022-07-10 03:28:08 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.