From 4919400fe2a8144c4bab19628bf5f5dec363877a Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Tue, 17 Mar 2020 19:54:06 +0100 Subject: [PATCH] improved error bypass logic in _apply_bindings(), fixes #330 --- .tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 2353a5f..becc718 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -755,8 +755,8 @@ 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 "$cfg.in"); do -# line=$(printf "%s" "$out" | cut -d':' -f2) +# 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 # }