aboutsummaryrefslogtreecommitdiff
path: root/src/app/mod.rs
diff options
context:
space:
mode:
authorRudolf S. <rud.schmidt@gmail.com>2026-09-07 14:04:54 +0200
committerGitHub <noreply@github.com>2026-09-07 14:04:54 +0200
commit482818130407691154d1635d4029b95d0e730104 (patch)
tree5f72ac0992b43a48a670bd3265fc5a2aeae366c8 /src/app/mod.rs
parent4b5e9bda239a0b6903889062d756424578e94691 (diff)
feat: make ui.pane_borders a three-state auto/always/off mode (#3234)
* feat: make ui.pane_borders a three-state auto/always/off mode Legacy booleans keep parsing (true = auto, false = off); "always" frames a lone pane while pane_outer_borders is enabled. * fix: align pane border reload test and documentation --------- Co-authored-by: Rudolf Schmidt <me@rudionrails.com> Co-authored-by: Jonathan Liebig <jonathan.liebig@gmail.com>
Diffstat (limited to 'src/app/mod.rs')
-rw-r--r--src/app/mod.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs
index 110be9b7..a0b90023 100644
--- a/src/app/mod.rs
+++ b/src/app/mod.rs
@@ -1874,13 +1874,9 @@ mod tests {
let original_pane_borders = app.state.pane_borders;
// Pair the bad bounds with another `[ui]` field change to confirm the
// entire section is treated as invalid (not just the bounds).
- let target_pane_borders = !original_pane_borders;
std::fs::write(
&path,
- format!(
- "[ui]\nsidebar_min_width = 50\nsidebar_max_width = 30\npane_borders = {}\n",
- target_pane_borders
- ),
+ "[ui]\nsidebar_min_width = 50\nsidebar_max_width = 30\npane_borders = \"always\"\n",
)
.unwrap();
@@ -1945,10 +1941,10 @@ mod tests {
std::env::set_var(crate::config::CONFIG_PATH_ENV_VAR, &path);
let mut app = test_app();
- let target_pane_borders = !app.state.pane_borders;
+ let target_pane_borders = crate::config::PaneBordersConfig::Always;
std::fs::write(
&path,
- format!("[ui]\npane_borders = {target_pane_borders}\nmouse_captur = false\n"),
+ "[ui]\npane_borders = \"always\"\nmouse_captur = false\n",
)
.unwrap();