Skip to content

Commit 2805dcf

Browse files
committed
test harness: Include $PREBUFFER and $BUFFER in the output.
For human readers' benefit.
1 parent 01d5737 commit 2805dcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test-highlighting.zsh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ run_test_internal() {
118118
builtin cd -q -- "$tests_tempdir" || { echo >&2 "Bail out! On ${(qq)1}: cd failed: $?"; return 1 }
119119

120120
echo "# ${1:t:r}"
121+
[[ -n $PREBUFFER ]] && printf '# %s\n' "$(typeset_p PREBUFFER)"
122+
[[ -n $BUFFER ]] && printf '# %s\n' "$(typeset_p BUFFER)"
121123

122124
# Load the data and prepare checking it.
123125
local BUFFER CURSOR MARK PENDING PREBUFFER REGION_ACTIVE WIDGET REPLY skip_test unsorted=0

0 commit comments

Comments
 (0)