aboutsummaryrefslogtreecommitdiff
path: root/src/app/config_io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/config_io.rs')
-rw-r--r--src/app/config_io.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/app/config_io.rs b/src/app/config_io.rs
index fa2765e9..804a26f6 100644
--- a/src/app/config_io.rs
+++ b/src/app/config_io.rs
@@ -94,6 +94,19 @@ impl App {
}
}
+ pub(super) fn save_switch_ascii_input_source_in_prefix(&mut self, enabled: bool) {
+ if self.update_config_file("prefix ascii input source", |content| {
+ crate::config::upsert_section_bool(
+ content,
+ "experimental",
+ "switch_ascii_input_source_in_prefix",
+ enabled,
+ )
+ }) {
+ self.apply_config_from_disk(false);
+ }
+ }
+
pub(super) fn save_agent_panel_scope(&mut self, scope: crate::app::state::AgentPanelScope) {
let value = match scope {
crate::app::state::AgentPanelScope::CurrentWorkspace => {