[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 6a7a8383100ab912a924b2fb11e49a56ff393706
Ville Skyttä
ville.skytta at iki.fi
Sat Jan 16 11:04:34 UTC 2010
The following commit has been merged in the master branch:
commit ef7f9dc89e3db29b68df62fc37c68b6232a9263a
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Jan 16 12:56:29 2010 +0200
(testsuite) Allow possibly leading whitespace in match_items() chunks > 1.
Thanks to Freddy Vulto.
diff --git a/test/lib/library.exp b/test/lib/library.exp
index 1da3aaf..fe07dcc 100644
--- a/test/lib/library.exp
+++ b/test/lib/library.exp
@@ -503,7 +503,8 @@ proc match_items {items test {prompt /@} {size 20}} {
set items [bash_sort $items]
set result false
for {set i 0} {$i < [llength $items]} {set i [expr {$i + $size}]} {
- set expected ""
+ # For chunks > 1, allow leading whitespace
+ if {$i > $size} { set expected "\\s*" } else { set expected "" }
for {set j 0} {$j < $size && $i + $j < [llength $items]} {incr j} {
set item "[lindex $items [expr {$i + $j}]]"
# Escape special regexp characters
--
bash-completion
More information about the Bash-completion-commits
mailing list