Fixed a bug that all map and imap mappings will append a \n to the command.