aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-21 14:58:52 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-04-23 23:24:16 +0200
commit45240538742d6276ab25abe0d8b02550e1c68179 (patch)
treedfac49feb3e299357598a7c4697e2cd145fd311e /test/functional/ui/screen.lua
parent1fe8945748620713402cab77a46501ec5311778b (diff)
downloadrneovim-45240538742d6276ab25abe0d8b02550e1c68179.tar.gz
rneovim-45240538742d6276ab25abe0d8b02550e1c68179.tar.bz2
rneovim-45240538742d6276ab25abe0d8b02550e1c68179.zip
test: api: Do not truncate errors <1 MB.
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index bcf2a2e3d6..7d9cd6c026 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -312,12 +312,13 @@ function Screen:_redraw(updates)
-- print(require('inspect')(update))
local method = update[1]
for i = 2, #update do
- local handler = self['_handle_'..method]
+ local handler_name = '_handle_'..method
+ local handler = self[handler_name]
if handler ~= nil then
handler(self, unpack(update[i]))
else
assert(self._on_event,
- "Add Screen:_handle_XXX method or call Screen:set_on_event_handler")
+ "Add Screen:"..handler_name.." or call Screen:set_on_event_handler")
self._on_event(method, update[i])
end
end