Toad World® Forums

Editor problem


#1

Code example:

PROCEDURE a111
IS
BEGIN
HTP.p (‘1’);
HTP.p (‘2’);
HTP.p (‘3’);
END a111;

When editing if a line starts with a tab (the line with htp.p(2); and later we go to that line so we would get
PROCEDURE a111
IS
BEGIN
HTP.p (‘1’); HTP.p (‘2’);
HTP.p (‘3’);
END a111;

Using the backspace for deletion the previous tab (that could be made automatically by the formater) it will act like the delete key deleting the char that is after the cursor.
Getting

PROCEDURE a111
IS
BEGIN
HTP.p (‘1’);
TP.p (‘2’);
HTP.p (‘3’);
END a111;

Filipe Silva


#2

Hi Filipe,

Step 2 is not quite clear to me. Did you put the cursor at the beginning of the line and press backspace to delete all the tab and space so it got appended to the line before?

Gwen


#3

Hi Gwen

The code2 is the aim the step I took was:
start with code 1
cursor before the HTP(‘2’) backspace to append to the line before
I got code 3
(should be code 2)


#4

Hi Filipe,

I could not reproduce the issue. I tried copy the provide script over but it didn’t behave like you say. It doesn’t even show tab characters in front of the second line.
Maybe a way to recreate that proc will help. (i.e. how many spaces or tabs before each line in the proc)

Gwen


#5

1- create a procedure
create PROCEDURE a1111
IS
BEGIN
HTP.p (‘1’);
HTP.p (‘2’);
HTP.p (‘3’);
END a1111;

2-
edit procedure and make sure that before
HTP.p (‘2’); you have a tab

3- save it

4- without exiting the editor put the cursor before the H in HTP.p (‘2’); line
5- press backspace

I have in the preferences
auto indent: on
indent size: 4
use tab char: on
tab size: 4
smart tab: off

Do you need more information about the preferences?

Thanks

Filipe Silva


#6

Hi Filipe,

Thanks for the detailed steps, I can recreate it this time. I will log this issue in.

Gwen