|
|
|
@ -290,6 +290,7 @@ impl Application {
|
|
|
|
|
.context("build signal handler")?;
|
|
|
|
|
|
|
|
|
|
let jobs = Jobs::new();
|
|
|
|
|
if config.load().editor.persistence.old_files {
|
|
|
|
|
let file_trim = config.load().editor.persistence.old_files_trim;
|
|
|
|
|
jobs.add(
|
|
|
|
|
Job::new(async move {
|
|
|
|
@ -298,6 +299,8 @@ impl Application {
|
|
|
|
|
})
|
|
|
|
|
.wait_before_exiting(),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
if config.load().editor.persistence.commands {
|
|
|
|
|
let commands_trim = config.load().editor.persistence.commands_trim;
|
|
|
|
|
jobs.add(
|
|
|
|
|
Job::new(async move {
|
|
|
|
@ -306,6 +309,8 @@ impl Application {
|
|
|
|
|
})
|
|
|
|
|
.wait_before_exiting(),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
if config.load().editor.persistence.search {
|
|
|
|
|
let search_trim = config.load().editor.persistence.search_trim;
|
|
|
|
|
jobs.add(
|
|
|
|
|
Job::new(async move {
|
|
|
|
@ -314,6 +319,7 @@ impl Application {
|
|
|
|
|
})
|
|
|
|
|
.wait_before_exiting(),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let app = Self {
|
|
|
|
|
compositor,
|
|
|
|
|