We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5d2f22 commit 2904e0fCopy full SHA for 2904e0f
tests/test-highlighting.zsh
@@ -227,9 +227,7 @@ run_test_internal() {
227
left_column=( "expected_region_highlight" "${(qq)expected_region_highlight[@]}" )
228
right_column=( "region_highlight" "${(qq)region_highlight[@]}" )
229
integer difference=$(( $#right_column - $#left_column ))
230
- if (( difference > 0 )); then
231
- left_column+=( ${(r:2*difference::. :):-} )
232
- fi
+ repeat $difference do left_column+=(.); done
233
paste \
234
=(print -rC1 -- $left_column) \
235
=(print -rC1 -- $right_column) \
0 commit comments