print multiple matches for all tab-complete operations, fix bug when tab-completing at end of line