Changeset 7499
- Timestamp:
- 08/23/09 23:43:39 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/QuickFixProvider/Perl.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/QuickFixProvider/Perl.pm
r7489 r7499 39 39 my $line_start = $editor->PositionFromLine($current_line_no); 40 40 my $line_end = $editor->GetLineEndPosition($current_line_no); 41 my $line = $editor->GetTextRange($line_start,$line_end);41 my $line = $editor->GetTextRange( $line_start, $line_end ); 42 42 $line = qq{use strict;$line\n}; 43 43 $editor->SetSelection( $line_start, $line_end ); 44 44 $editor->ReplaceSelection($line); 45 }45 } 46 46 }; 47 47 } … … 52 52 my $line_start = $editor->PositionFromLine($current_line_no); 53 53 my $line_end = $editor->GetLineEndPosition($current_line_no); 54 my $line = $editor->GetTextRange($line_start,$line_end);54 my $line = $editor->GetTextRange( $line_start, $line_end ); 55 55 $line = qq{use warnings;$line\n}; 56 56 $editor->SetSelection( $line_start, $line_end ); 57 57 $editor->ReplaceSelection($line); 58 }58 } 59 59 }; 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.
