Wrap cut in change
This commit is contained in:
parent
0236bfe65a
commit
c97b09a028
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue