fix: anonymous sid not working

This commit is contained in:
shadmansaleh
2022-02-17 12:53:17 +06:00
parent ebfe083337
commit 7b6ee3ef0a
3 changed files with 59 additions and 34 deletions

View File

@@ -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()