Fix readline support
commitf5a27c4816cb9fd7e8bd089619923702d7a98965
authorJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 17 Jun 2014 22:55:20 +0000 (17 18:55 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 17 Jun 2014 23:15:31 +0000 (17 19:15 -0400)
tree8906e6fd53848bf5e8ea01cbce97f103efed55ae
parentd3d40a3c575c8784a49b5db5199c62f58fb57c50
Fix readline support

The watch code introduced a bug where stdin was marked with nodelay()
when reading multibyte key input. This changed get_input() to use
wtimeout() instead of nodelay(). Unfortunately, as a defensive measure
an extra nodelay() was added before the loop that reads the remaining
multibyte stream, which in turn broke readline support.
src/display.c