api: vim_err_write: add tests for multiline handling

This commit is contained in:
Björn Linse
2015-07-27 13:39:38 +02:00
parent 8c2481806d
commit c8aaabc09c
3 changed files with 111 additions and 3 deletions

View File

@@ -489,7 +489,7 @@ function Screen:snapshot_util(attrs, ignore)
self:print_snapshot(attrs, ignore)
end
function Screen:redraw_debug(attrs, ignore)
function Screen:redraw_debug(attrs, ignore, timeout)
self:print_snapshot(attrs, ignore)
local function notification_cb(method, args)
assert(method == 'redraw')
@@ -500,7 +500,10 @@ function Screen:redraw_debug(attrs, ignore)
self:print_snapshot(attrs, ignore)
return true
end
run(nil, notification_cb, nil, 250)
if timeout == nil then
timeout = 250
end
run(nil, notification_cb, nil, timeout)
end
function Screen:print_snapshot(attrs, ignore)