replace:
on *:DIALOG:test:SCLICK:3: {
; find how many lines are selected
var %i = $did($dname,1,0).sel
var %j = 1
; loop through them while
(%j <= %i) {
did -a $dname 2 $did($dname,1,$did($dname,2,%j).sel)
inc %j
}
}
with:
on *:DIALOG:test:SCLICK:3: {
; find how many lines are selected
var %i = $did($dname,1,0).sel
var %j = 1
; loop through them
while (%j <= %i) {
did -a $dname 2 $did($dname,1,$did($dname,2,%j).sel)
inc %j
}
}