You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/test-highlighting.zsh
+1
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,7 @@ run_test_internal() {
145
145
146
146
# Check the data declares $PREBUFFER or $BUFFER.
147
147
[[ -z$PREBUFFER&&-z$BUFFER ]] && { echo>&2"Bail out! On ${(qq)ARG}: Either 'PREBUFFER' or 'BUFFER' must be declared and non-blank";return${RETURN:=1}; }
148
+
[[ $PREBUFFER== (''|*$'\n') ]] || { echo>&2"Bail out! On ${(qq)ARG}: PREBUFFER=${(qqqq)PREBUFFER} doesn't end with a newline";return${RETURN:=1}; }
0 commit comments