[Gambas-user] gb3: carriage return on comment line modification

Benoît Minisini gambas at ...1...
Thu Aug 11 17:30:30 CEST 2011


> While this is an overall improvement, I think it needs a small
> adjustment to make it perfect: a new comment line should not be created
> if the carriage return occurs at the very beginning or very end of of a
> comment line.
> 
> Pressing Enter in the middle of a comment almost certainly means you
> want all text to the right to become a comment on the next line (which
> works brilliantly). Pressing Enter at the end of a comment most of the
> time probably means you're about to enter some code. If you were going
> to enter another line of comments, hitting Tab and ' is pretty easy.
> Hitting Enter at the beginning of a comment line probably means you're
> just trying to move the comment line down.
> 
> This is what happens when you press Enter at the end of a comment line:
> 
>    ' Comment line 1.
>    '
> 
> And this if pressed at the beginning:
> 
>    '   ' Comment line 1.

Fixed in revision #4009.

Regards,

-- 
Benoît Minisini




More information about the User mailing list