mirror of
1
0
Fork 0

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:
Gregory Pakosz 2020-03-18 14:25:40 +01:00
parent 4919400fe2
commit d6f0f647dd
1 changed files with 7 additions and 4 deletions

View File

@ -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"
#
# # ignore bindings with errors
# while ! out=$(tmux source-file -v "$cfg.in"); do
# line=$(printf "%s" "$out" | tail -1 | cut -d':' -f2)
# perl -n -i -e "if ($. != $line) { print }" "$cfg.in"
# done
# 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)
# perl -n -i -e "if ($. != $line) { print }" "$cfg.in"
# done
# fi
# }
#
# _apply_theme() {