Files
neovim/runtime/lua/vim
Oleksandr Chekhovskyi 03815969c4 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.

(cherry picked from commit d9d8c660fd)
2026-02-24 07:44:21 +00:00
..
2024-03-06 10:45:22 +00:00
2024-01-16 09:33:10 +00:00
2025-02-26 23:06:22 +01:00