codingteam / pacmacs.el

Pacman for Emacs
Other
91 stars 9 forks source link

Replace new lines in the nickname score records with spaces #196

Open rexim opened 8 years ago

rexim commented 8 years ago

Generally, when the Game Over sign asks your nickname, you cannot enter a new line, because Enter is bound to the nick submission. But the C-j combination actually allows you to do that. And some emacsers (including me) have a habit to hit it instead of RET because this combination autoindents stuff.

If the nickname contains newlines the score is really messed up. And it's not even possible to enter a new nickname if the score table contains some nicks with new lines.

I suggest to replace newlines with spaces when we persist the score table.