Merge branch 'master' of github.com:m-kress/ProjectTox-Core

This commit is contained in:
Michael Kress 2013-08-03 16:18:01 +02:00
commit 2e476a06b6

View File

@ -441,7 +441,7 @@ int main(int argc, char *argv[])
if (c == '\n') {
line_eval(lines, line);
strcpy(line, "");
} else if (c == 127) {
} else if (c == 8 || c == 127) {
line[strlen(line)-1] = '\0';
} else if (isalnum(c) || ispunct(c) || c == ' ') {
strcpy(line, appender(line, (char) c));