Bug: backwards find&replace

Wim

Member²

Code:
CREATE OR REPLACE PROCEDURE test is
BEGIN
  dbms_output.put_line('This is a test');

    -- cursor positioned on this line

  dbms_output.put_line('This is the end of the test');
END test;

Ctrl-F (Find&Replace), 'This is' to be replaced with 'This is not', backward direction.

Code:
CREATE OR REPLACE PROCEDURE test is
BEGIN
  dbms_output.put_line('This is not not not not not a test');

    -- cursor positioned up here --^

  dbms_output.put_line('This is the end of the test');
END test;

Not the result I was hoping for ;)

On top of that the cursor position shifted, which is not the behaviour I want my IDE to have when I ask for a 'Find&Replace'.
 
Same context, different bug. The program hangs now though.

Cursor position at '1:1', meaning at the beginning of the code and then doing a backward Find&Replace will make PSD crash.

I can imagine it counting backwards from that position and ending up at -365468431:-265491354635464831651 etc :)

Yeah sure, I should not be so stupid as to go backwards from that position but the F&R dialog had saved that particular option from the last time I used it, so ..
Maybe a 'Continue from the beginning?' and similar dialogs could pop up (like MS Word and other software does).

Oh yes, I'm on the 7.1.5.1397 version in case you're wondering.
 

Code:
CREATE OR REPLACE PROCEDURE test is
BEGIN
  dbms_output.put_line('This is not a test');

    -- cursor positioned on this line

  dbms_output.put_line('This is not the end of the test');
END test;

Bugfix confirmed BUT it now changes all instances of the 'This is' search pattern. (Also when I perform a forward Find&Replace.) It should not do that unless I specificly ask it to.

I would also still like to keep my cursor at the position where it was when I initiated the Find&Replace.
 
Back
Top