From ea879e5562112ce1de268b146680691f41b1dda1 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 17 Oct 2018 11:24:25 -0400 Subject: Document the fact that `ui.print()` cannot be called during init. --- core/ui.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/ui.lua') 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) -- cgit v1.2.3