mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 12:08:33 +00:00
fix(completion): remove wrong FUNC_ATTR_NONNULL_ALL (#19627)
This commit is contained in:
@@ -825,7 +825,6 @@ static void ins_compl_longest_match(compl_T *match)
|
|||||||
/// Add an array of matches to the list of matches.
|
/// Add an array of matches to the list of matches.
|
||||||
/// Frees matches[].
|
/// Frees matches[].
|
||||||
static void ins_compl_add_matches(int num_matches, char **matches, int icase)
|
static void ins_compl_add_matches(int num_matches, char **matches, int icase)
|
||||||
FUNC_ATTR_NONNULL_ALL
|
|
||||||
{
|
{
|
||||||
int add_r = OK;
|
int add_r = OK;
|
||||||
Direction dir = compl_direction;
|
Direction dir = compl_direction;
|
||||||
|
@@ -1253,4 +1253,10 @@ describe('completion', function()
|
|||||||
feed('ifoo#<C-X><C-U>')
|
feed('ifoo#<C-X><C-U>')
|
||||||
assert_alive()
|
assert_alive()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('does not crash when using i_CTRL-X_CTRL-V to complete non-existent colorscheme', function()
|
||||||
|
feed('icolorscheme NOSUCHCOLORSCHEME<C-X><C-V>')
|
||||||
|
expect('colorscheme NOSUCHCOLORSCHEME')
|
||||||
|
assert_alive()
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user