only trim persistent state files if persistent state is enabled

pull/9143/head
Ingrid 2 months ago
parent be1deec1ed
commit 554f0f891d

@ -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,

Loading…
Cancel
Save