浏览代码

tests: Set ZLE variables to sane defaults

pull/451/head
Matthew Martin 6 年前
父节点
当前提交
459c128f43
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      tests/test-highlighting.zsh

+ 3
- 0
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

正在加载...
取消
保存