stannickel / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Disable "Replace" and Replace & Find" when nothing is selected. #1075

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Had a minor issue when doing a replace & find under the find dialog box. I was 
replacing the word pwrdbgLED with pdLED, and when it came upon the last entry, 
clicking "replace & find" only added the text "pdLED".

To recreate this problem, open the bare minimum sketch from the examples. Under 
the Edit menu, select find. replace "void" with "boid" and click "replace & 
find" multiple times and you will be able to see the problem. 

Using Arduino 1.0.1 on Windows 7 Professional Service Pack 1 (64-bit) and OSEPP 
Uno board, however I think the board I'm using is irrelevant. 

Original issue reported on code.google.com by Jskalky...@gmail.com on 18 Oct 2012 at 7:19

GoogleCodeExporter commented 9 years ago
When I just tested this (on Mac OS X 10.8.2), it seems that the problem is that 
the "Replace" and "Replace & Find" commands will add the replacement text even 
if nothing is selected. That is, they "replace" nothing with the replacement 
text, which has the effect of simply inserting the replacement text. We should 
probably just disable those buttons when nothing is selected.

Original comment by dmel...@gmail.com on 18 Oct 2012 at 2:06