Wrap paste in change, fixing #72

This commit is contained in:
Jeremy Soller 2023-12-12 09:53:39 -07:00
parent 7c723654f1
commit 0236bfe65a
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -1347,7 +1347,9 @@ impl Application for App {
Message::PasteValue(value) => match self.active_tab() {
Some(Tab::Editor(tab)) => {
let mut editor = tab.editor.lock().unwrap();
editor.start_change();
editor.insert_string(&value, None);
editor.finish_change();
}
_ => {}
},