|
Post by Stefan on Jan 30, 2023 12:39:40 GMT -5
George,
Latest beta v23029
There's a bug in DataInsert mode. It goes wrong when the line includes a matched pair of quotation marks.
Take these three REXX lines. =COLS> ....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9 000001 A. = 0 /* Initialise Command Argument values */ 000002 D. = 0 /* '' Display settings */ 000003 F. = 0 /* "" File attributes */ - Press the (SetDIN) key - Place the cursor under the 'A' on line 1 and type one or more spaces. All is perfectly fine. I believe that's because there's no quote pair later on the line. - Place the cursor under the 'D' on line 2 and type one or more spaces. Different story. Everything, including the two single quotes up to the word "Display" moves to the right. - Same occurs with double quotes. Basically, matched quotes symbols later on the line upset (DataInsert) mode.
Additional info: The comment delimiters /* ... */ have no effect on the behaviour. You can remove them and the same error occurs.
The error does NOT occur if the first quotation mark encountered is not matched by another of the same type, not even if there are other matched quotes later in the line. So the sequence " <text> ' <text> ' <text> gives no error as long as there isn't another " anywhere on the line.
So this is purely a matter of "DataInsert mode when there are matched quotation marks later on the line".
|
|
|
Post by George on Jan 30, 2023 13:34:01 GMT -5
Stefan: Well, there are multiple code chunks in the program which need to support the DS mode change. And guess which one still had the old uncorrected code?
Yep.
My apologies, I've cut/pasted it back to health.
I'll replace todays Beta and insert a trailing 'A' on the version.
George
|
|