Changeset 862


Ignore:
Timestamp:
11/09/08 20:34:22 (3 years ago)
Author:
fayland
Message:

fix a paste error when select something then paste

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Padre/Wx/Editor.pm

    r860 r862  
    509509    } 
    510510    my $pos = $win->{notebook}->GetPage($id)->GetCurrentPos; 
     511    $win->{notebook}->GetPage($id)->ReplaceSelection(''); 
    511512    $win->{notebook}->GetPage($id)->InsertText( $pos, $text ); 
    512513    $win->{notebook}->GetPage($id)->GotoPos( $pos + $length - 1 ); 
Note: See TracChangeset for help on using the changeset viewer.