aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/ui.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2018-10-17 11:24:25 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2018-10-17 11:24:25 -0400
commitea879e5562112ce1de268b146680691f41b1dda1 (patch)
treed68e852dad4af2cd96d939f585bf822fa9b024fa /core/ui.lua
parent020d55d90426d7cc71aac24a5e45acc7f1f665c1 (diff)
Document the fact that `ui.print()` cannot be called during init.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/ui.lua b/core/ui.lua
index be5d637b..fa2e6b67 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -74,6 +74,8 @@ end
-- buffer is already open in a view, the message is printed to that view.
-- Otherwise the view is split (unless `ui.tabs` is `true`) and the message
-- buffer is displayed before being printed to.
+-- At this time, `ui.print()` cannot be used until Textadept is fully
+-- initialized. (That is, not until `events.INITIALIZED` is emitted.)
-- @param buffer_type String type of message buffer.
-- @param ... Message strings.
-- @usage ui._print(_L['[Message Buffer]'], message)