diff options
author | 2010-10-27 21:10:27 -0400 | |
---|---|---|
committer | 2010-10-27 21:10:27 -0400 | |
commit | 9c7c63824f46f2f64ca33b45582abfcd33193cd8 (patch) | |
tree | 8f5bf2330ecb44ba4fb5eac903b3919677219ada | |
parent | f8b39a92d84211c76a21f86cf974c759a544c7c5 (diff) | |
download | textadept-9c7c63824f46f2f64ca33b45582abfcd33193cd8.tar.gz textadept-9c7c63824f46f2f64ca33b45582abfcd33193cd8.zip |
Do not try to check for file updates if it cannot be read; core/file_io.lua
-rw-r--r-- | core/file_io.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index df2ad3d0..6a1735e8 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -334,7 +334,7 @@ local function update_modified_file() local utf8_filename = buffer.filename local filename = utf8_filename:iconv(_CHARSET, 'UTF-8') local attributes = lfs.attributes(filename) - if not attributes then return end + if not attributes or not buffer.modification_time then return end if buffer.modification_time < attributes.modification then if gui.dialog('yesno-msgbox', '--title', L('Reload?'), |