From b21e66a3cd20e088149926ecdf5710dabd1ec03b Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 26 Nov 2014 09:59:23 -0500 Subject: Allow connection to `events.QUIT` without requiring index of 1. --- core/events.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'core/events.lua') diff --git a/core/events.lua b/core/events.lua index c63e98a8..afa851f9 100644 --- a/core/events.lua +++ b/core/events.lua @@ -206,8 +206,11 @@ local M = {} -- * _`alt`_: The "Alt"/"Option" modifier key is held down. -- @field QUIT (string) -- Emitted when quitting Textadept. --- When connecting to this event, connect with an index of 1 or the handler --- will be ignored. +-- When connecting to this event, connect with an index of 1 if the handler +-- needs to run before Textadept closes all open buffers. If a handler returns +-- `true`, Textadept does not quit. It is not recommended to return `false` +-- from a quit handler, as that may interfere with Textadept's normal shutdown +-- procedure. -- Emitted by [`quit()`](). -- @field REPLACE (string) -- Emitted to replace selected (found) text. -- cgit v1.2.3