Don't check unnamed files in autoreload plugin
This commit is contained in:
@@ -67,7 +67,7 @@ local on_check = dirwatch.check
|
|||||||
function dirwatch:check(change_callback, ...)
|
function dirwatch:check(change_callback, ...)
|
||||||
on_check(self, function(dir)
|
on_check(self, function(dir)
|
||||||
for _, doc in ipairs(core.docs) do
|
for _, doc in ipairs(core.docs) do
|
||||||
if dir == common.dirname(doc.abs_filename) or dir == doc.abs_filename then
|
if doc.abs_filename and (dir == common.dirname(doc.abs_filename) or dir == doc.abs_filename) then
|
||||||
local info = system.get_file_info(doc.filename or "")
|
local info = system.get_file_info(doc.filename or "")
|
||||||
if info and times[doc] ~= info.modified then
|
if info and times[doc] ~= info.modified then
|
||||||
if not doc:is_dirty() and not config.plugins.autoreload.always_show_nagview then
|
if not doc:is_dirty() and not config.plugins.autoreload.always_show_nagview then
|
||||||
|
|||||||
Reference in New Issue
Block a user