aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-10-27 21:10:27 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-10-27 21:10:27 -0400
commit9c7c63824f46f2f64ca33b45582abfcd33193cd8 (patch)
tree8f5bf2330ecb44ba4fb5eac903b3919677219ada /core
parentf8b39a92d84211c76a21f86cf974c759a544c7c5 (diff)
downloadtextadept-9c7c63824f46f2f64ca33b45582abfcd33193cd8.tar.gz
textadept-9c7c63824f46f2f64ca33b45582abfcd33193cd8.zip
Do not try to check for file updates if it cannot be read; core/file_io.lua
Diffstat (limited to 'core')
-rw-r--r--core/file_io.lua2
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?'),