mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
fix(spell): always accept ':' as filename char in 'spellfile' (#27172)
Follow-up to #25236
This commit is contained in:
@@ -4,6 +4,7 @@ local eq = helpers.eq
|
||||
local clear = helpers.clear
|
||||
local api = helpers.api
|
||||
local exc_exec = helpers.exc_exec
|
||||
local fn = helpers.fn
|
||||
local rmdir = helpers.rmdir
|
||||
local write_file = helpers.write_file
|
||||
local mkdir = helpers.mkdir
|
||||
@@ -105,4 +106,14 @@ describe('spellfile', function()
|
||||
api.nvim_set_option_value('spelllang', 'en', {})
|
||||
eq('Vim(set):E757: This does not look like a spell file', exc_exec('set spell'))
|
||||
end)
|
||||
|
||||
it('can be set to a relative path', function()
|
||||
local fname = testdir .. '/spell/spell.add'
|
||||
api.nvim_set_option_value('spellfile', fname, {})
|
||||
end)
|
||||
|
||||
it('can be set to an absolute path', function()
|
||||
local fname = fn.fnamemodify(testdir .. '/spell/spell.add', ':p')
|
||||
api.nvim_set_option_value('spellfile', fname, {})
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user