From d215280b004daca13928446d8819e47871d8d394 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 11 Sep 2026 11:17:21 +0100 Subject: [PATCH] Add rounded border tests. --- regress/options-values.sh | 5 +++++ regress/screen-redraw-floating.sh | 6 ++++++ .../floating-border-rounded.result | 12 ++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 regress/screen-redraw-results/floating-border-rounded.result diff --git a/regress/options-values.sh b/regress/options-values.sh index be08cc136..e87b878ff 100644 --- a/regress/options-values.sh +++ b/regress/options-values.sh @@ -86,6 +86,11 @@ check_value "-gv status-keys" "vi" check_fail "unknown value: bogus" set -g status-keys bogus check_value "-gv status-keys" "vi" +# pane-border-lines accepts rounded as a pane border style. +check_ok set -gw pane-border-lines rounded +check_value "-gwv pane-border-lines" "rounded" +check_ok set -gw pane-border-lines single + # --- flag options --------------------------------------------------------- # # focus-events is an on/off flag. Setting with no value toggles it; explicit diff --git a/regress/screen-redraw-floating.sh b/regress/screen-redraw-floating.sh index a7b389fef..c3b65a970 100644 --- a/regress/screen-redraw-floating.sh +++ b/regress/screen-redraw-floating.sh @@ -107,6 +107,12 @@ $TMUX2 new-pane -x28 -y8 -X4 -Y1 -B double \ "sh -c 'printf FLOAT; exec sleep 100'" || exit 1 compare floating-border-double +# Larger floating pane with rounded border lines. +new_scene 40 12 +$TMUX2 new-pane -x28 -y8 -X4 -Y1 -B rounded \ + "sh -c 'printf FLOAT; exec sleep 100'" || exit 1 +compare floating-border-rounded + # Floating pane with no border lines: redraw_mark_pane_borders returns early so # the float has no border at all, only its (clipped) content over the base pane. new_scene 40 12 diff --git a/regress/screen-redraw-results/floating-border-rounded.result b/regress/screen-redraw-results/floating-border-rounded.result new file mode 100644 index 000000000..77a2f0c1c --- /dev/null +++ b/regress/screen-redraw-results/floating-border-rounded.result @@ -0,0 +1,12 @@ +base + ╭──────────────────────────╮ + │FLOAT │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────╯ + + +