Fix Ctrl+D Crashes and Freezes (#296)

Cleaned version of https://github.com/p-e-w/finalterm/pull/306
Thanks for cleaning up the code. This is the last instance left where there should be no space after the function name.