diff options
| -rw-r--r-- | init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -70,4 +70,12 @@ end M.add_recreate_watch = function(file, func, cmd_options) _add_watch(file, func, 'recreate', cmd_options) end + +vis.events.subscribe(vis.events.QUIT, function() + -- Terminate all watches + for k, _ in pairs(watches) do + watches[k] = nil + end +end) + return M |
