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