fix(tmux): load session indicator at render-time
This commit is contained in:
parent
80e190f43a
commit
02f1603e89
2 changed files with 12 additions and 14 deletions
|
|
@ -92,8 +92,6 @@ confirm() {
|
|||
|
||||
case "$1" in
|
||||
bar)
|
||||
session=$(tmux display-message -p '#S')
|
||||
[ "$session" ] || exit
|
||||
if [ "$(tmux show-options -gv mouse)" = "on" ]; then
|
||||
indicator='#{?pane_in_mode,[mouse#{@c}copy],[mouse]}'
|
||||
else
|
||||
|
|
@ -114,8 +112,7 @@ bar)
|
|||
else
|
||||
key='?'
|
||||
fi
|
||||
star=""
|
||||
[ "$sname" = "$session" ] && star="*"
|
||||
star="#{?#{==:#S,$sname},*,}"
|
||||
[ -n "$bar_content" ] && bar_content="$bar_content │ "
|
||||
bar_content="$bar_content#[range=session|${sid}]$key:$sname$star#[norange]"
|
||||
i=$((i + 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue