CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/04/22 06:23:26
Modified files:
usr.bin/tmux : format.c tmux.1 window-buffer.c window-client.c
window-tree.c
Log message:
Improve #? conditional expression in formats:
1) add support for else if, so
#{?cond1,value1,#{?cond2,value2,else-value}} can be changed to
#{?cond1,value1,cond2,value2,else-value};
2) add default empty string if there's no else value, so
#{?cond1,value1,} can be changed to #{?cond1,value1}.
>From David Mandelberg in GitHub issue 4451.