diff options
Diffstat (limited to 'core/ext/mime_types.lua')
-rw-r--r-- | core/ext/mime_types.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/ext/mime_types.lua b/core/ext/mime_types.lua index 489f1d4a..ec4ef808 100644 --- a/core/ext/mime_types.lua +++ b/core/ext/mime_types.lua @@ -120,7 +120,7 @@ local function handle_switch() end local handlers = textadept.handlers -handlers.add_function_to_handler('file_opened', handle_new) -handlers.add_function_to_handler('file_saved_as', handle_new) -handlers.add_function_to_handler('buffer_switch', handle_switch) -handlers.add_function_to_handler('view_new', handle_switch) +handlers.add_handler_function('file_opened', handle_new) +handlers.add_handler_function('file_saved_as', handle_new) +handlers.add_handler_function('buffer_switch', handle_switch) +handlers.add_handler_function('view_new', handle_switch) |