vi bugfix in repeat
add initial selection testing