add newline character at end of input to get better completion at end of lines and on ctrl+arrow