improved error bypass logic in _apply_bindings() (2), fixes #331
source-file -v is not documented in tmux CHANGES but in fact appeared in tmux 3.0
This commit is contained in:
parent
4919400fe2
commit
d6f0f647dd
1 changed files with 7 additions and 4 deletions
|
@ -755,10 +755,13 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
|
||||||
# '{i = $2 == "-T" ? 4 : 5; gsub(/^[;]$/, "\\\\&", $i); gsub(/^[$"#~]$/, "'"'"'&'"'"'", $i); gsub(/^['"'"']$/, "\"&\"", $i); print}' > "$cfg.in"
|
# '{i = $2 == "-T" ? 4 : 5; gsub(/^[;]$/, "\\\\&", $i); gsub(/^[$"#~]$/, "'"'"'&'"'"'", $i); gsub(/^['"'"']$/, "\"&\"", $i); print}' > "$cfg.in"
|
||||||
#
|
#
|
||||||
# # ignore bindings with errors
|
# # ignore bindings with errors
|
||||||
# while ! out=$(tmux source-file -v "$cfg.in"); do
|
# if ! tmux source-file "$cfg.in"; then
|
||||||
|
# verbose_flag=$(tmux source-file -v /dev/null 2> /dev/null && printf -- '-v' || true)
|
||||||
|
# while ! out=$(tmux source-file "$verbose_flag" "$cfg.in"); do
|
||||||
# line=$(printf "%s" "$out" | tail -1 | cut -d':' -f2)
|
# line=$(printf "%s" "$out" | tail -1 | cut -d':' -f2)
|
||||||
# perl -n -i -e "if ($. != $line) { print }" "$cfg.in"
|
# perl -n -i -e "if ($. != $line) { print }" "$cfg.in"
|
||||||
# done
|
# done
|
||||||
|
# fi
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# _apply_theme() {
|
# _apply_theme() {
|
||||||
|
|
Loading…
Reference in a new issue