neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 0a29267514c57c438d68a3d5599bfada41363b24
parent 3df8d9b8c56a7f0af0f7590b11831bd96ead92f1
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Wed,  3 Aug 2022 21:50:14 +0800

fix(completion): remove wrong FUNC_ATTR_NONNULL_ALL (#19627)


Diffstat:
Msrc/nvim/insexpand.c | 1-
Mtest/functional/editor/completion_spec.lua | 6++++++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c @@ -825,7 +825,6 @@ static void ins_compl_longest_match(compl_T *match) /// Add an array of matches to the list of matches. /// Frees matches[]. static void ins_compl_add_matches(int num_matches, char **matches, int icase) - FUNC_ATTR_NONNULL_ALL { int add_r = OK; Direction dir = compl_direction; diff --git a/test/functional/editor/completion_spec.lua b/test/functional/editor/completion_spec.lua @@ -1253,4 +1253,10 @@ describe('completion', function() feed('ifoo#<C-X><C-U>') assert_alive() 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)