diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ex_cmds/verbose_spec.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/verbose_spec.lua b/test/functional/ex_cmds/verbose_spec.lua index f1c3d3fe16..326104dc3c 100644 --- a/test/functional/ex_cmds/verbose_spec.lua +++ b/test/functional/ex_cmds/verbose_spec.lua @@ -38,6 +38,13 @@ function Close_Window() abort\ wincmd -\ endfunction\ ", false) + +local ret = vim.api.nvim_exec ("\ +function! s:return80()\ + return 80\ +endfunction\ +let &tw = s:return80()\ +", true) ]]) exec(':source '..script_file) end) @@ -125,6 +132,14 @@ test_group FileType endfunction]], script_location), result) end) + + it('"Last set" works with anonymous sid', function() + local result = exec_capture(':verbose set tw?') + eq(string.format([[ + textwidth=80 + Last set from %s line 22]], + script_location), result) + end) end) describe('lua verbose:', function() |