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

cgdb will append a \n to the end of the command mapping. That's inconvenient especially for imap, since all the mapping command will be send to gdb.