txt2bas icon indicating copy to clipboard operation
txt2bas copied to clipboard

Inconsistent TAB behaviour

Open paulossilva opened this issue 5 years ago • 3 comments

In the online editor, pressing TAB for a single line gives a four-space indentation, but when used with a multiple line selection it gives a two-space indentation.

I'm using code without line numbers as I use the #autoline directive

paulossilva avatar May 16 '20 14:05 paulossilva

Oh, I'm not aware of the #autoline directive (I'm pretty sure my code is ignorant of the feature).

To clarify what you're reporting, when you've got multiple lines selected and then you hit tab, it's indenting with 2 spaces.

remy avatar May 16 '20 16:05 remy

That's right, when I select multiple lines in the online editor, I get two spaces for indenting by hitting tab instead of four spaces (which is what I get for a single line indenting). I prefer 2 spaces instead of 4 by the way :-)

paulossilva avatar May 16 '20 17:05 paulossilva

Not to self, can also replicate with this line:

20 PRINT "hello world"

Place cursor after 20 and tab=2 spaces, after PRINT tab=tab char. Weird.

remy avatar May 17 '20 09:05 remy