mirror of
https://github.com/tmux/tmux.git
synced 2026-10-08 19:14:20 +00:00
Fix tests.
This commit is contained in:
2
regress/format-strings.sh
Normal file → Executable file
2
regress/format-strings.sh
Normal file → Executable file
@@ -176,7 +176,7 @@ test_conditional_with_pane_in_mode "#{?pane_in_mode,abc,#{?#{==:#{session_name},
|
|||||||
test_conditional_with_session_name "#{?pane_in_mode,abc,#{?#{==:#{session_name},Summer},ABC,XYZ}}" "ABC" "XYZ"
|
test_conditional_with_session_name "#{?pane_in_mode,abc,#{?#{==:#{session_name},Summer},ABC,XYZ}}" "ABC" "XYZ"
|
||||||
|
|
||||||
# Some fancy stackings
|
# Some fancy stackings
|
||||||
test_conditional_with_pane_in_mode "#{?#{==:#{?pane_in_mode,#{session_name},#(echo Spring)},Summer},abc,xyz}" "abc" "xyz"
|
test_conditional_with_pane_in_mode "#{?#{==:#{?pane_in_mode,#{session_name},#{@cold}},Summer},abc,xyz}" "abc" "xyz"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,8 @@ check_drag()
|
|||||||
start=$1
|
start=$1
|
||||||
end=$2
|
end=$2
|
||||||
|
|
||||||
|
$TMUX set -g @drag-end '' || exit 1
|
||||||
|
|
||||||
# First move along the status line, then into the pane. The first
|
# First move along the status line, then into the pane. The first
|
||||||
# movement establishes the drag origin without dispatching new-pane.
|
# movement establishes the drag origin without dispatching new-pane.
|
||||||
mouse 16 10 "$start" M
|
mouse 16 10 "$start" M
|
||||||
@@ -73,6 +75,8 @@ check_drag()
|
|||||||
mouse 48 18 "$end" M
|
mouse 48 18 "$end" M
|
||||||
mouse 16 18 "$end" m
|
mouse 16 18 "$end" m
|
||||||
|
|
||||||
|
wait_option @drag-end done
|
||||||
|
|
||||||
panes=$($TMUX list-panes -F '#{pane_id}') || fail "server exited"
|
panes=$($TMUX list-panes -F '#{pane_id}') || fail "server exited"
|
||||||
[ "$panes" = "$BASE" ] || fail "status-line drag created a pane: $panes"
|
[ "$panes" = "$BASE" ] || fail "status-line drag created a pane: $panes"
|
||||||
}
|
}
|
||||||
@@ -108,6 +112,7 @@ $TMUX set -g 'status-format[1]' "#[range=pane|$BASE]PANE PANE PANE PANE#[norange
|
|||||||
$TMUX set -g 'status-format[2]' '#[range=control|0]CONTROL CONTROL CONTROL#[norange]' || exit 1
|
$TMUX set -g 'status-format[2]' '#[range=control|0]CONTROL CONTROL CONTROL#[norange]' || exit 1
|
||||||
$TMUX bind -n C-MouseDrag1Status set -g @status-drag status || exit 1
|
$TMUX bind -n C-MouseDrag1Status set -g @status-drag status || exit 1
|
||||||
$TMUX bind -n C-MouseDrag1Control0 set -g @status-drag control || exit 1
|
$TMUX bind -n C-MouseDrag1Control0 set -g @status-drag control || exit 1
|
||||||
|
$TMUX bind -n C-MouseDragEnd1Pane set -g @drag-end done || exit 1
|
||||||
wait_status
|
wait_status
|
||||||
|
|
||||||
row=1
|
row=1
|
||||||
|
|||||||
Reference in New Issue
Block a user