fixed bug where the backspace doesn't work like it should under mac os x

This commit is contained in:
Joel de Vahl 2008-12-30 15:52:26 +00:00
parent fa9002f9b4
commit 581ec394f6

View file

@ -29,7 +29,8 @@ void LINEINPUT::process_input(INPUT_EVENT e)
char c = e.ch;
int k = e.key;
if (!(c >= 0 && c < 32))
// 127 is produced on Mac OS X and corresponds to the delete key
if (!(c >= 0 && c < 32) && c != 127)
{
if (len < sizeof(str) - 1 && cursor_pos < sizeof(str) - 1)
{