copy/pasting highlighted line introduces newline and oddness

Worker

Member³
I hit some odd behavior in PL/SQL Developer. I was able to narrow it down and reproduce it using the following steps:

1) Paste the following code in a blank program window:

Code:
create or replace procedure Test is
	num		NUMBER;
begin
	num := 1;
	code error
	num := 2;
end Test;
2) Place the cursor on one of the "num" occurrences, and note that all 3 occurrences are highlighted correctly.
3) Execute the program window
4) Cut the highlighted line by pressing: Home, Shift-Down_Arrow, Control-X
5) Paste the highlighted line by pressing Control-V
6) Note that a blank line was introduced out of nowhere.
7) Place the cursor on one of the "num" occurrences, and note that the last occurrence is not highlighted correctly.
8) Remove the blank line by moving the cursor to it and pressing Delete.
9) Place the cursor on one of the "num" occurrences, and note that the last occurrence is still not highlighted correctly.
10) Un-do (Control-Z) and remove the blank line by moving the cursor to it and pressing Backspace.
11) Place the cursor on one of the "num" occurrences, and note that the last occurrence is finally highlighted correctly.
 
Back
Top