Fix #156 - tab twice for tabcomplete

Resets `tabCompletionIndex` when resetting tab completion. Plus resets it after sending a message.