mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
eval: Fix len argument to xstrlcat
This commit is contained in:
@@ -180,8 +180,7 @@ describe('ShaDa support code', function()
|
||||
nvim_command('undo')
|
||||
nvim_command('set shada+=%')
|
||||
nvim_command('wshada! ' .. shada_fname)
|
||||
local readme_fname = paths.test_source_path .. '/README.md'
|
||||
readme_fname = helpers.eval( 'resolve("' .. readme_fname .. '")' )
|
||||
local readme_fname = funcs.resolve(paths.test_source_path) .. '/README.md'
|
||||
eq({[7]=1, [8]=2, [9]=1, [10]=4, [11]=1}, find_file(readme_fname))
|
||||
nvim_command('set shada+=r~')
|
||||
nvim_command('wshada! ' .. shada_fname)
|
||||
@@ -189,7 +188,8 @@ describe('ShaDa support code', function()
|
||||
nvim_command('set shada-=r~')
|
||||
nvim_command('wshada! ' .. shada_fname)
|
||||
eq({[7]=1, [8]=2, [9]=1, [10]=4, [11]=1}, find_file(readme_fname))
|
||||
nvim_command('set shada+=r' .. paths.test_source_path)
|
||||
nvim_command('set shada+=r' .. funcs.escape(
|
||||
funcs.escape(paths.test_source_path, '$~'), ' "\\,'))
|
||||
nvim_command('wshada! ' .. shada_fname)
|
||||
eq({}, find_file(readme_fname))
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user