Wrap paste in change, fixing #72
This commit is contained in:
parent
7c723654f1
commit
0236bfe65a
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue