Ticket #1316: fix1316-on_selection.patch

File fix1316-on_selection.patch, 520 bytes (added by mj41, 2 years ago)
  • Padre/lib/Padre/Wx/Main.pm

    diff --git a/Padre/lib/Padre/Wx/Main.pm b/Padre/lib/Padre/Wx/Main.pm
    index f24810a..323b3f0 100644
    a b sub on_open_selection { 
    42894289    unless (@files) { 
    42904290        my $document = $current->document; 
    42914291        push @files, $document->guess_filename_to_open($text); 
     4292        unless (@files) { 
     4293            my $text_shortened = $text; 
     4294            $text_shortened =~ s{::[^\:]+$}{}; 
     4295            push @files, $document->guess_filename_to_open($text_shortened); 
     4296        } 
    42924297    } 
    42934298 
    42944299    unless (@files) {