From 5b292b2408f24479b8ce5eb4d8a295a559bf8481 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 20 Jun 2014 12:02:35 -0400 Subject: Added `event.FOCUS` for when Textadept's window receives focus. --- core/file_io.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'core/file_io.lua') 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. -- cgit v1.2.3