From 459c128f43d454981838be1c0ff4bec13970b555 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Thu, 2 Nov 2017 19:09:32 -0500 Subject: [PATCH] tests: Set ZLE variables to sane defaults --- tests/test-highlighting.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test-highlighting.zsh b/tests/test-highlighting.zsh index 0c1d843..f6ebff4 100755 --- a/tests/test-highlighting.zsh +++ b/tests/test-highlighting.zsh @@ -103,6 +103,9 @@ run_test_internal() { # Check the data declares $expected_region_highlight. (( ${#expected_region_highlight} == 0 )) && { echo >&2 "Bail out! 'expected_region_highlight' is not declared or empty."; return 1; } + # Set sane defaults for ZLE variables + : ${CURSOR=$#BUFFER} ${PENDING=0} ${WIDGET=z-sy-h-test-harness-test-widget} + # Process the data. region_highlight=() _zsh_highlight