tests: Set ZLE variables to sane defaults
This commit is contained in:
parent
079ea39f74
commit
459c128f43
@ -103,6 +103,9 @@ run_test_internal() {
|
|||||||
# Check the data declares $expected_region_highlight.
|
# 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; }
|
(( ${#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.
|
# Process the data.
|
||||||
region_highlight=()
|
region_highlight=()
|
||||||
_zsh_highlight
|
_zsh_highlight
|
||||||
|
Loading…
Reference in New Issue
Block a user