diff options
author | 2014-06-20 12:02:35 -0400 | |
---|---|---|
committer | 2014-06-20 12:02:35 -0400 | |
commit | 5b292b2408f24479b8ce5eb4d8a295a559bf8481 (patch) | |
tree | d39e8eda6d4f5dc2bcf741b0fd3c5492b2ce20f3 /core/file_io.lua | |
parent | a9f6d85ead8c83ce210e5ffb05f84361e029f419 (diff) | |
download | textadept-5b292b2408f24479b8ce5eb4d8a295a559bf8481.tar.gz textadept-5b292b2408f24479b8ce5eb4d8a295a559bf8481.zip |
Added `event.FOCUS` for when Textadept's window receives focus.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index 7ddfee00..eb91ed2a 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -305,6 +305,7 @@ local function update_modified_file() end events_connect(events.BUFFER_AFTER_SWITCH, update_modified_file) events_connect(events.VIEW_AFTER_SWITCH, update_modified_file) +events_connect(events.FOCUS, update_modified_file) -- Prompts the user to reload the current file if it has been externally -- modified. |