Ticket #2155: edit.patch

File edit.patch, 556 bytes (added by nickk9, 15 years ago)
  • edit.

    old new  
    30453045        edit_cut_to_X_buf_cmd (edit); 
    30463046        break; 
    30473047    case CK_XPaste: 
     3048        // nickk: delete currently selected block to paste over it. 
     3049        if ( !option_persistent_selections ) { 
     3050            if ( edit->mark1 != edit->mark2 ) { 
     3051                edit_block_delete_cmd (edit); 
     3052            } 
     3053        } 
    30483054        if ( option_cursor_beyond_eol && edit->over_col > 0 ) 
    30493055            edit_insert_over (edit); 
    30503056        edit_paste_from_X_buf_cmd (edit);