aboutsummaryrefslogtreecommitdiff
path: root/core/events.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2017-11-29 15:02:41 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2017-11-29 15:02:41 -0500
commit8102443e83f53a4bd31bde6790b2b87846a67124 (patch)
tree3671c33c7942ad192a6471c94268b8bbb7260fb0 /core/events.lua
parent51a6c45a8d0c110b134b287c240454d9088112e2 (diff)
downloadtextadept-8102443e83f53a4bd31bde6790b2b87846a67124.tar.gz
textadept-8102443e83f53a4bd31bde6790b2b87846a67124.zip
Added `events.ZOOM`.
Diffstat (limited to 'core/events.lua')
-rw-r--r--core/events.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/events.lua b/core/events.lua
index 4a86859a..d84ce179 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -261,6 +261,9 @@ local M = {}
-- @field VIEW_AFTER_SWITCH (string)
-- Emitted right after switching to another view.
-- Emitted by [`ui.goto_view()`]().
+-- @field ZOOM (string)
+-- Emitted after changing [`buffer.zoom`]().
+-- Emitted by [`buffer.zoom_in()`]() and [`buffer.zoom_out()`]().
module('events')]]
local handlers = {}
@@ -349,10 +352,11 @@ local scnotifications = {
[c.SCN_URIDROPPED] = {'uri_dropped', 'text'},
[c.SCN_DWELLSTART] = {'dwell_start', 'position', 'x', 'y'},
[c.SCN_DWELLEND] = {'dwell_end', 'position', 'x', 'y'},
- [c.SCN_CALLTIPCLICK] = {'call_tip_click', 'position'},
- [c.SCN_AUTOCSELECTION] = {'auto_c_selection', 'text', 'position'},
+ [c.SCN_ZOOM] = {'zoom'},
[c.SCN_INDICATORCLICK] = {'indicator_click', 'position', 'modifiers'},
[c.SCN_INDICATORRELEASE] = {'indicator_release', 'position'},
+ [c.SCN_CALLTIPCLICK] = {'call_tip_click', 'position'},
+ [c.SCN_AUTOCSELECTION] = {'auto_c_selection', 'text', 'position'},
[c.SCN_AUTOCCANCELLED] = {'auto_c_cancelled'},
[c.SCN_AUTOCCHARDELETED] = {'auto_c_char_deleted'},
[c.SCN_AUTOCCOMPLETED] = {'auto_c_completed', 'text', 'position'},