aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCullen <culbot@gmail.com>2026-06-22 14:44:31 +0300
committerGitHub <noreply@github.com>2026-06-22 14:44:31 +0300
commit569c33b094ca1161bf2431fd9aa2c48b87dd688e (patch)
tree83e6e7692b3f87d4af4e65dc0e03e8a81a22529d /src
parent4846cb1324a6a9e46bc89250cf8a289b91866a9c (diff)
fix: use active pane color for border intersections (#742)
Diffstat (limited to 'src')
-rw-r--r--src/ui/panes.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ui/panes.rs b/src/ui/panes.rs
index 03174762..fcb51d2a 100644
--- a/src/ui/panes.rs
+++ b/src/ui/panes.rs
@@ -399,13 +399,11 @@ fn render_pane_borders(app: &AppState, ws: &crate::workspace::Workspace, frame:
{
continue;
}
- let focused_touching = app
+ let focused = app
.view
.pane_infos
.iter()
.any(|info| info.is_focused && line_touches_pane(x, y, info, app.pane_gaps));
- let branch_cell = !app.pane_gaps && line_cell_degree(line) >= 3;
- let focused = focused_touching && !branch_cell;
let symbol = line_cell_symbol(line);
if symbol.is_empty() {
continue;
@@ -590,10 +588,6 @@ fn render_pane_border_titles(app: &AppState, ws: &crate::workspace::Workspace, f
}
}
-fn line_cell_degree(line: LineCell) -> u8 {
- line.up as u8 + line.down as u8 + line.left as u8 + line.right as u8
-}
-
fn line_cell_symbol(line: LineCell) -> &'static str {
match (line.up, line.down, line.left, line.right) {
(true, true, true, true) => "┼",
@@ -994,7 +988,7 @@ mod tests {
let buffer = terminal.backend().buffer();
assert_eq!(buffer[(2, 2)].symbol(), "┼");
- assert_eq!(buffer[(2, 2)].style().fg, Some(app.palette.overlay0));
+ assert_eq!(buffer[(2, 2)].style().fg, Some(app.palette.accent));
assert_eq!(buffer[(2, 1)].symbol(), "│");
assert_eq!(buffer[(2, 1)].style().fg, Some(app.palette.accent));
}