mirror of
https://github.com/tmux/tmux.git
synced 2026-10-11 04:44:25 +00:00
Use window-status-separator in second and theird status lines, GitHub
issue 5672. Also match width of session name correctly.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: options-table.c,v 1.248 2026/10/02 15:04:27 nicm Exp $ */
|
/* $OpenBSD: options-table.c,v 1.249 2026/10/05 09:03:11 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
|
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@@ -184,7 +184,8 @@ static const char *options_table_copy_mode_line_numbers_list[] = {
|
|||||||
"#[pop-default]" \
|
"#[pop-default]" \
|
||||||
"#[norange default]"
|
"#[norange default]"
|
||||||
#define OPTIONS_TABLE_STATUS_FORMAT2 \
|
#define OPTIONS_TABLE_STATUS_FORMAT2 \
|
||||||
"#[align=left]#{R: ,#{n:#{session_name}}}P: " \
|
"#[align=left]" \
|
||||||
|
"#{R: ,#{e|-:#{w;T;=/#{status-left-length}:status-left},3}}P: " \
|
||||||
"#[norange default]" \
|
"#[norange default]" \
|
||||||
"#[list=on align=#{status-justify}]" \
|
"#[list=on align=#{status-justify}]" \
|
||||||
"#[list=left-marker]<#[list=right-marker]>#[list=on]" \
|
"#[list=left-marker]<#[list=right-marker]>#[list=on]" \
|
||||||
@@ -195,7 +196,8 @@ static const char *options_table_copy_mode_line_numbers_list[] = {
|
|||||||
"#[push-default]" \
|
"#[push-default]" \
|
||||||
"#{T:window-pane-status-format}" \
|
"#{T:window-pane-status-format}" \
|
||||||
"#[pop-default]" \
|
"#[pop-default]" \
|
||||||
"#[norange list=on default] " \
|
"#[norange list=on default]" \
|
||||||
|
"#{?loop_last_flag,,#{E:window-status-separator}}" \
|
||||||
"," \
|
"," \
|
||||||
"#[range=pane|#{pane_id} list=focus " \
|
"#[range=pane|#{pane_id} list=focus " \
|
||||||
"#{?#{!=:#{E:pane-status-current-style},default}," \
|
"#{?#{!=:#{E:pane-status-current-style},default}," \
|
||||||
@@ -206,10 +208,12 @@ static const char *options_table_copy_mode_line_numbers_list[] = {
|
|||||||
"#[push-default]" \
|
"#[push-default]" \
|
||||||
"#{T:window-pane-current-status-format}" \
|
"#{T:window-pane-current-status-format}" \
|
||||||
"#[pop-default]" \
|
"#[pop-default]" \
|
||||||
"#[norange list=on default] " \
|
"#[norange list=on default]" \
|
||||||
|
"#{?loop_last_flag,,#{E:window-status-separator}}" \
|
||||||
"}"
|
"}"
|
||||||
#define OPTIONS_TABLE_STATUS_FORMAT3 \
|
#define OPTIONS_TABLE_STATUS_FORMAT3 \
|
||||||
"#[align=left]#{R: ,#{n:#{session_name}}}S: " \
|
"#[align=left]" \
|
||||||
|
"#{R: ,#{e|-:#{w;T;=/#{status-left-length}:status-left},3}}S: " \
|
||||||
"#[norange default]" \
|
"#[norange default]" \
|
||||||
"#[list=on align=#{status-justify}]" \
|
"#[list=on align=#{status-justify}]" \
|
||||||
"#[list=left-marker]<#[list=right-marker]>#[list=on]" \
|
"#[list=left-marker]<#[list=right-marker]>#[list=on]" \
|
||||||
|
|||||||
Reference in New Issue
Block a user