summaryrefslogtreecommitdiffstats
path: root/regress
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-08-18 11:20:22 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-08-20 07:58:44 +0100
commit3676779156dcef4d23b83f0a9f7930e3c8fd4263 (patch)
tree360e9b70fa59bda1501800c1214ca1380c231901 /regress
parent551bafc18d27968552b282b74f980fdee30a58a8 (diff)
Fix format test for new behaviour.
Diffstat (limited to 'regress')
-rw-r--r--regress/format-strings.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/regress/format-strings.sh b/regress/format-strings.sh
index 726b46bc..0ae27386 100644
--- a/regress/format-strings.sh
+++ b/regress/format-strings.sh
@@ -125,14 +125,13 @@ test_conditional_with_pane_in_mode "#{?pane_in_mode,[abc,xyz],bonus}" "[abc" "xy
test_conditional_with_pane_in_mode "#{?pane_in_mode,[abc#,xyz],bonus}" "[abc,xyz]" "bonus"
-# Escape comma inside of #(...)
-# Note: #() commands are run asynchronous and are substituted with result of the
-# *previous* run or a placeholder (like "<'echo ,' not ready") if the command
-# has not been run before. The format is updated as soon as the command
-# finishes. As we are printing the message only once it never gets updated
-# and the displayed message is "<'echo ,' not ready>"
+# Escape comma inside of #(...) Note: #() commands are run asynchronous and are
+# substituted with result of the *previous* run, an empty string if the command
+# is new, or a placeholder after a few seconds. The format is updated as soon
+# as the command finishes. As we are printing the message only once it never
+# gets updated and the displayed message is empty.
test_format "#{?pane_in_mode,#(echo #,),xyz}" "xyz"
-test_conditional_with_pane_in_mode "#{?pane_in_mode,#(echo #,),xyz}" "<'echo ,' not ready>" "xyz"
+test_conditional_with_pane_in_mode "#{?pane_in_mode,#(echo #,),xyz}" "" "xyz"
# This caching does not work :-(
#$TMUX display-message -p "#(echo #,)" > /dev/null
#test_conditional_with_pane_in_mode "#{?pane_in_mode,#(echo #,),xyz}" "," "xyz"