Skip to content

Commit

Permalink
Wrap cut in change
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Dec 12, 2023
1 parent 0236bfe commit c97b09a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,9 @@ impl Application for App {
Some(Tab::Editor(tab)) => {
let mut editor = tab.editor.lock().unwrap();
let selection_opt = editor.copy_selection();
editor.start_change();
editor.delete_selection();
editor.finish_change();
if let Some(selection) = selection_opt {
return clipboard::write(selection);
}
Expand Down

0 comments on commit c97b09a

Please sign in to comment.