diff options
| author | Oleksandr Chekhovskyi <oleksandr.chekhovskyi@gmail.com> | 2026-02-24 00:33:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-23 17:33:13 -0500 |
| commit | d9d8c660fd5559d928c8870a21970a375674e310 (patch) | |
| tree | 5611057b8e50ca90b1f34ed82cb2bea1f9b53b1e /runtime/lua/vim/provider/python.lua | |
| parent | b57ed5e94052252207eb524b8cda2ee561b98159 (diff) | |
| download | rneovim-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 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions