diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-05-19 09:58:23 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-05-19 09:58:23 +0200 |
| commit | 4a736a3eca287b208306d82c8a926999e61f99f6 (patch) | |
| tree | 5f4e97b564806cacc2c9b5a07b8f28fd91367887 /text-objects.c | |
| parent | fbf4a58b75d997273b6e2b5ab471a986dbfd1151 (diff) | |
| download | vis-4a736a3eca287b208306d82c8a926999e61f99f6.tar.gz vis-4a736a3eca287b208306d82c8a926999e61f99f6.tar.xz | |
vis: improve `:<` command implementation
When we have nothing to write to an external process, redirect stdin to
/dev/null instead of using a pipe which is immediately closed.
Some commands change their behavior when used in a shell pipeline.
As an example the following did not work as expected:
:< ag pattern
Fix #556
Diffstat (limited to 'text-objects.c')
0 files changed, 0 insertions, 0 deletions
