diff options
author | shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> | 2022-02-17 12:53:17 +0600 |
---|---|---|
committer | shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> | 2022-02-28 19:18:49 +0600 |
commit | 7b6ee3ef0a2d64657c8ca25f440e010c6dc75408 (patch) | |
tree | bfe569a15470eb33482563f9981a1a2a40a4dd6c /test | |
parent | ebfe083337701534887ac3ea3d8e7ad47f7a206a (diff) | |
download | rneovim-7b6ee3ef0a2d64657c8ca25f440e010c6dc75408.tar.gz rneovim-7b6ee3ef0a2d64657c8ca25f440e010c6dc75408.tar.bz2 rneovim-7b6ee3ef0a2d64657c8ca25f440e010c6dc75408.zip |
fix: anonymous sid not working
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() |