diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-17 23:05:28 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-06-18 17:51:38 +0200 |
commit | d44ed79ccc43b59fec9ef622f18f543ef1c73263 (patch) | |
tree | e97e3802b1dccbae1498d8d0b3ce88950d134842 /src/clint.py | |
parent | 63b5f05d4724bba9aa33fd813ac1f4f93c891260 (diff) | |
download | rneovim-d44ed79ccc43b59fec9ef622f18f543ef1c73263.tar.gz rneovim-d44ed79ccc43b59fec9ef622f18f543ef1c73263.tar.bz2 rneovim-d44ed79ccc43b59fec9ef622f18f543ef1c73263.zip |
startup: go to buffer 2 if stdin is empty
If stdin is not a TTY we read it into buffer 1, as text. But if the
stdin pipe is empty, Nvim was most likely invoked for some other reason.
DWIM: select buffer 2 (if it exists). Example:
echo file1 | xargs nvim
closes #8560
closes #8561
ref https://github.com/equalsraf/neovim-qt/issues/417
Diffstat (limited to 'src/clint.py')
0 files changed, 0 insertions, 0 deletions