-f now also completes on filenames starting with a dash (-).
if -t is used -f is now also displayed.
Optimized code.