i3bar: Bugfix: When receiving EOF, immediately redraw and discard input

This commit is contained in:
Michael Stapelberg 2011-08-25 18:46:08 +02:00
parent 9c587a767c
commit 39cff5c31f

View File

@ -82,7 +82,8 @@ void stdin_io_cb(struct ev_loop *loop, ev_io *watcher, int revents) {
/* end of file, kill the watcher */ /* end of file, kill the watcher */
ELOG("stdin: received EOF\n"); ELOG("stdin: received EOF\n");
cleanup(); cleanup();
break; draw_bars();
return;
} }
rec += n; rec += n;