From 8102443e83f53a4bd31bde6790b2b87846a67124 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 29 Nov 2017 15:02:41 -0500 Subject: Added `events.ZOOM`. --- core/events.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/events.lua') 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'}, -- cgit v1.2.3