Fix wrong (char) cast (instead of unsigned char) causing highlighting of all

8bit characters due to famous sign extension bug.
This commit is contained in:
Andrey A. Chernov 2001-04-27 22:35:44 +00:00
parent 680307ae14
commit 68bfc19537

View File

@ -965,13 +965,13 @@ int column;
}
else
{
waddch(window, (char)character );
waddch(window, (unsigned char)character );
return(1);
}
}
else
{
waddch(window, (char)character);
waddch(window, (unsigned char)character);
return(1);
}
for (i2 = 0; (string[i2] != (char) NULL) && (((column+i2+1)-horiz_offset) < last_col); i2++)