Opened 5 years ago

Closed 5 years ago

#588 closed defect (fixed)

Toggle comment fails to work with \s+# in the first line

Reported by: azawawi Owned by: azawawi
Priority: major Milestone:
Component: editor Version: 0.46
Keywords: Cc:

Description

Scenario:

  1. Create new Perl Script
  2. Insert some whitespace before #!/usr/bin/perl
  3. Now try selecting all and then toggle comment (Ctrl-Shift-C)

Wrong behavior:
It does not work! Does absolutely nothing.

Correct behavior:
Toggle comment should work!

Thanks for Alias++ (Adam Kennedy) for reporting it.

Change History (1)

comment:1 Changed 5 years ago by jagd

  • Resolution set to fixed
  • Status changed from new to closed

i think it is fixed by r11268 please test

it introduces some changes:

  1. (un)comment are now with indent
  2. the first byte of a file, who /#!/ matches, should not be uncommented
Note: See TracTickets for help on using tickets.