Replaced isprint() with git add .iscntrl() in order to support accents.

This commit is contained in:
GrenderG
2017-04-07 14:26:12 +02:00
parent 7d44f9f2b7
commit 675b3c9e57
+1 -1
View File
@@ -718,7 +718,7 @@ char* editorPrompt(char* prompt) {
editorSetStatusMessage("");
return buf;
}
} else if (isprint(c)) {
} else if (!iscntrl(c)) {
if (buf_len == buf_size - 1) {
buf_size *= 2;
buf = realloc(buf, buf_size);