Fix '^D' to exit properly, while previously remainder of buffer prevent '^Z' to work properly.
Completion to repeat current buffer and prompt.