This commit is contained in:
chris
2002-11-04 12:29:06 +00:00
parent 09e55647de
commit 83c173350b
21 changed files with 732 additions and 34 deletions

View File

@@ -88,9 +88,9 @@ char *edline(int linenum, const char *prompt, const char *initial) {
case 23: /* ^W */
for (i = pos; i > 0; --i)
if (!isspace(str[i])) break;
if (!isspace((int)str[i])) break;
for (; i > 0; --i)
if (isspace(str[i])) break;
if (isspace((int)str[i])) break;
if (i != pos) {
memmove(str + i, str + pos, strlen(str + pos) + 1);
pos = i;