diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-26 21:56:10 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-26 22:06:57 -0300 |
commit | 41b05a0a3c5bd610b3220c7cbe81d96787368683 (patch) | |
tree | 0b96462036558819cca0fee537849af4282fa5d6 /runtime/doc/manpages/vim.1 | |
parent | c47e0d6210a82f3c2a88e2bc937e77f8b2a72b64 (diff) | |
download | rneovim-41b05a0a3c5bd610b3220c7cbe81d96787368683.tar.gz rneovim-41b05a0a3c5bd610b3220c7cbe81d96787368683.tar.bz2 rneovim-41b05a0a3c5bd610b3220c7cbe81d96787368683.zip |
tui: Fix reading when stdin is not a tty
Instead of selecting stderr on startup if stdin is not a tty, first try reading
from it and only switch to stderr when reading fails. With this behavior we
support commands like:
```
echo q | nvim -es
```
and
```
ls *.md | xargs nvim
```
Fixed small bugs in rstream.c to make this happen.
Diffstat (limited to 'runtime/doc/manpages/vim.1')
0 files changed, 0 insertions, 0 deletions