diff options
author | 2018-10-17 11:24:25 -0400 | |
---|---|---|
committer | 2018-10-17 11:24:25 -0400 | |
commit | ea879e5562112ce1de268b146680691f41b1dda1 (patch) | |
tree | d68e852dad4af2cd96d939f585bf822fa9b024fa /core | |
parent | 020d55d90426d7cc71aac24a5e45acc7f1f665c1 (diff) | |
download | textadept-ea879e5562112ce1de268b146680691f41b1dda1.tar.gz textadept-ea879e5562112ce1de268b146680691f41b1dda1.zip |
Document the fact that `ui.print()` cannot be called during init.
Diffstat (limited to 'core')
-rw-r--r-- | core/ui.lua | 2 |
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) |