aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorOleksandr Chekhovskyi <oleksandr.chekhovskyi@gmail.com>2026-02-24 00:33:13 +0200
committerGitHub <noreply@github.com>2026-02-23 17:33:13 -0500
commitd9d8c660fd5559d928c8870a21970a375674e310 (patch)
tree5611057b8e50ca90b1f34ed82cb2bea1f9b53b1e /test/functional/vimscript/executable_spec.lua
parentb57ed5e94052252207eb524b8cda2ee561b98159 (diff)
downloadrneovim-d9d8c660fd5559d928c8870a21970a375674e310.tar.gz
rneovim-d9d8c660fd5559d928c8870a21970a375674e310.tar.bz2
rneovim-d9d8c660fd5559d928c8870a21970a375674e310.zip
fix(watch): invalid joined path #37973
Problem: When vim._watch.watch() is used to watch a single file, libuv returns the basename as the filename argument in the callback. The code joins this with the watched path, producing a nonsensical path like "/path/to/file.lua/file.lua", which causes ENOTDIR errors on subsequent fs_stat calls. Solution: Check whether the watched path is a directory before joining the filename. When watching a file, ignore the filename from libuv and use the watched path directly.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions