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
1 changed files with 2 additions and 1 deletions

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 */
ELOG("stdin: received EOF\n");
cleanup();
break;
draw_bars();
return;
}
rec += n;