aboutsummaryrefslogtreecommitdiffhomepage
path: root/core
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2014-06-07 10:56:29 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2014-06-07 10:56:29 -0400
commit51e373d39fb303bc378adb29fcb39010289e8d86 (patch)
tree37ac82064ea625ce730f2e362e21ae59a8651f7b /core
parent7337a375d0c2a2341d13d8ec300b4e6f68368522 (diff)
Added parameter to `events.UPDATE_UI`.
Diffstat (limited to 'core')
-rw-r--r--core/events.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/core/events.lua b/core/events.lua
index 6e473212..f4f520c5 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -218,6 +218,18 @@ local M = {}
-- Emitted after reaching a save point.
-- @field UPDATE_UI (string)
-- Emitted after the view is visually updated.
+-- Arguments:
+--
+-- * _`updated`_: A bitmask of changes since the last update.
+--
+-- + `buffer.UPDATE_CONTENT`
+-- Buffer contents, styling, or markers have changed.
+-- + `buffer.UPDATE_SELECTION`
+-- Buffer selection has changed.
+-- + `buffer.UPDATE_V_SCROLL`
+-- Buffer has scrolled vertically.
+-- + `buffer.UPDATE_H_SCROLL`
+-- Buffer has scrolled horizontally.
-- @field URI_DROPPED (string)
-- Emitted after dragging and dropping a URI into a view.
-- Arguments:
@@ -328,7 +340,7 @@ local scnotifications = {
[c.SCN_SAVEPOINTREACHED] = {'save_point_reached'},
[c.SCN_SAVEPOINTLEFT] = {'save_point_left'},
[c.SCN_DOUBLECLICK] = {'double_click', 'position', 'line', 'modifiers'},
- [c.SCN_UPDATEUI] = {'update_ui'},
+ [c.SCN_UPDATEUI] = {'update_ui', 'updated'},
[c.SCN_MODIFIED] = {'modified', 'modification_type'}, -- undocumented
[c.SCN_MARGINCLICK] = {'margin_click', 'margin', 'position', 'modifiers'},
[c.SCN_USERLISTSELECTION] = {