aboutsummaryrefslogtreecommitdiff
path: root/test/functional/autocmd
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2020-01-14 09:21:10 +0100
committerGitHub <noreply@github.com>2020-01-14 09:21:10 +0100
commit3d1531aee5d92375b69098de8f8c788ea407b066 (patch)
tree3b208e3ab6d243c9f1ed50828ff556fa7e79d530 /test/functional/autocmd
parent92316849863bb2661ee5b4bb284f56163fed27ad (diff)
downloadrneovim-3d1531aee5d92375b69098de8f8c788ea407b066.tar.gz
rneovim-3d1531aee5d92375b69098de8f8c788ea407b066.tar.bz2
rneovim-3d1531aee5d92375b69098de8f8c788ea407b066.zip
API: include invalid buffer/window/tabpage in error message (#11712)
Diffstat (limited to 'test/functional/autocmd')
-rw-r--r--test/functional/autocmd/autocmd_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/autocmd/autocmd_spec.lua b/test/functional/autocmd/autocmd_spec.lua
index 805db9dd78..43534c9e7e 100644
--- a/test/functional/autocmd/autocmd_spec.lua
+++ b/test/functional/autocmd/autocmd_spec.lua
@@ -219,7 +219,7 @@ describe('autocmd', function()
eq(7, eval('g:test'))
-- API calls are blocked when aucmd_win is not in scope
- eq('Vim(call):E5555: API call: Invalid window id',
+ eq('Vim(call):E5555: API call: Invalid window id: 1001',
pcall_err(command, "call nvim_set_current_win(g:winid)"))
-- second time aucmd_win is needed, a different code path is invoked
@@ -257,7 +257,7 @@ describe('autocmd', function()
eq(0, eval('g:had_value'))
eq(7, eval('g:test'))
- eq('Vim(call):E5555: API call: Invalid window id',
+ eq('Vim(call):E5555: API call: Invalid window id: 1001',
pcall_err(command, "call nvim_set_current_win(g:winid)"))
end)