diff options
| author | Tomas Slusny <slusnucky@gmail.com> | 2026-06-11 12:15:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-11 06:15:04 -0400 |
| commit | 2fd2361a9df3156f1b3cae45f76f648bb1701915 (patch) | |
| tree | 8af690a4c33d2ea9e48f8e8c13e148134ee396a3 /test/functional/vimscript/executable_spec.lua | |
| parent | d72e91a0b672b5c13eb76440585d0d5d9a8a5e3d (diff) | |
| download | rneovim-2fd2361a9df3156f1b3cae45f76f648bb1701915.tar.gz rneovim-2fd2361a9df3156f1b3cae45f76f648bb1701915.tar.bz2 rneovim-2fd2361a9df3156f1b3cae45f76f648bb1701915.zip | |
fix(startup): use `nvim.difftool` for `nvim -d` only for directories #40185
Problem:
`nvim -u NONE -d <(xxd one) <(xxd two)` has weird behavior.
Process substitution `<(...)` is a pipe and not a seekable file.
Test case:
cat /dev/random | head -c 10240 > one
cp one two
cat /dev/random | head -c 10240 >> two
nvim -u NONE -d <(xxd one) <(xxd two)
Solution:
Workaround the issue by skipping `nvim.difftool` if the 2 args are not
directories; fall-through to the builtin diff handling.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions