window: after we're done with readline, return EOF instead of 0

This commit is contained in:
Benoit Pierre
2015-01-31 18:54:11 +01:00
committed by Andrzej Rybczak
parent d7998ef144
commit c507889d8c

View File

@@ -64,7 +64,7 @@ int read_key(FILE *)
if (done)
{
rl_done = 1;
return 0;
return EOF;
}
w->goToXY(x, start_y);
}