terminal: Consume event during processing (#30869)
By consuming the event during processing we save a few clones during event processing. Overall in this PR we save one Clone each during: - Paste to the terminal - Writing to the terminal - Setting the title - On every terminal transaction - On every ViMotion when not using shift Release Notes: - N/A
This commit is contained in:
@@ -264,7 +264,7 @@ impl Project {
|
||||
},
|
||||
)
|
||||
}
|
||||
None => (None, settings.shell.clone()),
|
||||
None => (None, settings.shell),
|
||||
}
|
||||
}
|
||||
TerminalKind::Task(spawn_task) => {
|
||||
|
||||
Reference in New Issue
Block a user