mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 14:22:37 +03:00
fix 'already borrowed' panic with large pastes
This commit is contained in:
parent
3f16979067
commit
74bbf01014
@ -327,8 +327,12 @@ impl GuiEventLoop {
|
||||
}
|
||||
}
|
||||
|
||||
fn pop_gui_thread_send(&self) -> Option<SpawnFunc> {
|
||||
self.gui_thread_sends.borrow_mut().pop_front()
|
||||
}
|
||||
|
||||
fn process_gui_exec(&self) -> Result<(), Error> {
|
||||
while let Some(func) = self.gui_thread_sends.borrow_mut().pop_front() {
|
||||
while let Some(func) = self.pop_gui_thread_send() {
|
||||
func();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user