Hello!
The IDE fails, if the cursor stands at column 1 and you press the specified shortcut to (un)comment a single code line.
Instead, the LF of the previous line is being selected.
Tested on Windows and Linux (via VNC) with the 4.30 x86 IDE.
Ctrl+B and Alt+B faulty if cursor is at column 1
Ctrl+B and Alt+B faulty if cursor is at column 1
PB 4.30
Code: Select all
onErrorGoto(?Fred)
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
interesting, I never tried this.
Ctrl-B / Alt-B is for (un)commending marked Lines.
you can use it for a single line when you mark a single line, but it's quicker to just press the [;]
some harmless false behaviour if you use it the wrong way is ... tolerable.
it does not even mess up your code, so no worry, I think.
Ctrl-B / Alt-B is for (un)commending marked Lines.
you can use it for a single line when you mark a single line, but it's quicker to just press the [;]
some harmless false behaviour if you use it the wrong way is ... tolerable.
it does not even mess up your code, so no worry, I think.
oh... and have a nice day.
I discovered this by accident.
Yes, this bug is harmless, but bug is bug.
> when you mark a single line
No. I used this from the beginning on, and this even works, if the cursor stands somewhere in the middle of a line with no text selected. If you then press Ctrl+B, the whole line gets commented.
So does the IDE, if the cursor stands at the end of a line (last column).
As it works without selected text, it would be nice if this behaviour would be more consistent.
> it's quicker to just press the [;]
Errrr... No. Of course, it depends on the certain situation, but I have the situation that I click here and there with the mouse in the right hand and comment/uncomment single lines of code with Ctrl/Alt+B to debug my code. So leaving the mouse to use both hands to press this combo would consume incredibly 1 second more time!
Yes, this bug is harmless, but bug is bug.

> when you mark a single line
No. I used this from the beginning on, and this even works, if the cursor stands somewhere in the middle of a line with no text selected. If you then press Ctrl+B, the whole line gets commented.
So does the IDE, if the cursor stands at the end of a line (last column).
As it works without selected text, it would be nice if this behaviour would be more consistent.
> it's quicker to just press the [;]
Errrr... No. Of course, it depends on the certain situation, but I have the situation that I click here and there with the mouse in the right hand and comment/uncomment single lines of code with Ctrl/Alt+B to debug my code. So leaving the mouse to use both hands to press this combo would consume incredibly 1 second more time!

PB 4.30
Code: Select all
onErrorGoto(?Fred)
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
didn't know it works for single unmarked lines when the cursor is anywhere else than row1... thnx for the tip.
I got one tip for you:
learn pressing shift- or ctrl- combinations with left hand on the right keyboard side.
use thumb or index finger for for right ctrl or right shift, and ring finger or little finger for the key you want.
I play games using mouse, and switch the music with ctrl-M quite often...
I got one tip for you:
learn pressing shift- or ctrl- combinations with left hand on the right keyboard side.
use thumb or index finger for for right ctrl or right shift, and ring finger or little finger for the key you want.

I play games using mouse, and switch the music with ctrl-M quite often...
oh... and have a nice day.
So, Kaeru Gaman is made of dough and rubber ?Kaeru Gaman wrote:[...] pressing shift- or ctrl- combinations with left hand on the right keyboard side.
use thumb or index finger for for right ctrl or right shift, and ring finger or little finger for the key you want.
...
Ah! I thought so.
You couldn't fool me forever, you know.
PB Forums : Proof positive that 2 heads (or more...) are better than one 
