diff options
author | 2019-07-30 17:19:57 -0400 | |
---|---|---|
committer | 2019-07-30 17:19:57 -0400 | |
commit | 2cea55c6e65e4ea7f735655b45d917b76e8b7945 (patch) | |
tree | c774bad437062eab22f8ebbea3e22937b15bc136 /core/ui.lua | |
parent | e1c41c53c4bb7bf6ef5770dce93e4cda21fb1a8e (diff) |
Fail more gracefully when attempting to create buffers on init.
Diffstat (limited to 'core/ui.lua')
-rw-r--r-- | core/ui.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/ui.lua b/core/ui.lua index a5827cef..a19785c9 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -74,13 +74,11 @@ 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) -- @name _print -function ui._print(buffer_type, ...) pcall(_print, buffer_type, ...) end +function ui._print(buffer_type, ...) _print(buffer_type, ...) end --- -- Prints the given string messages to the message buffer. |