mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
also listen for moved_to
This commit is contained in:
parent
682fef60e9
commit
d3f0a455e7
@ -314,7 +314,7 @@ function create_watcher(files)
|
||||
local wd_table = {}
|
||||
local handle = inotify.init()
|
||||
for _, dir in ipairs(dirs) do
|
||||
local wd = handle:addwatch(dir, inotify.IN_CLOSE_WRITE)
|
||||
local wd = handle:addwatch(dir, inotify.IN_CLOSE_WRITE, inotify.IN_MOVED_TO)
|
||||
wd_table[wd] = dir
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user