mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix: anonymous sid not working
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user