Skip to content

Instantly share code, notes, and snippets.

@mcepl
Created November 6, 2021 13:11
Show Gist options
  • Save mcepl/e13402bf27d7f45913f27c61b0bc02cb to your computer and use it in GitHub Desktop.
Save mcepl/e13402bf27d7f45913f27c61b0bc02cb to your computer and use it in GitHub Desktop.
neovim@stitny (vim-8.2.3520 *)$ git diff
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 02ac62574..3ea7b442c 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -2545,7 +2545,7 @@ 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_u * *matches, int icase)
+static void ins_compl_add_matches(int num_matches, char_u **matches, int icase)
FUNC_ATTR_NONNULL_ALL
{
int add_r = OK;
@@ -2991,7 +2991,7 @@ theend:
xfree(buf);
}
-static void ins_compl_files(int count, char_u * *files, int thesaurus, int flags,
+static void ins_compl_files(int count, char_u **files, int thesaurus, int flags,
regmatch_T *regmatch, char_u *buf, Direction *dir)
FUNC_ATTR_NONNULL_ARG(2, 7)
{
@@ -4111,7 +4111,7 @@ int ins_compl_add_tv(typval_T *const tv, const Direction dir, bool fast)
return FAIL;
}
return ins_compl_add((char_u *)word, -1, NULL,
- (char_u * *)cptext, true, &user_data, dir, flags, dup);
+ (char_u **)cptext, true, &user_data, dir, flags, dup);
}
/// Returns true when using a user-defined function for thesaurus completion.
@@ -4138,7 +4138,7 @@ static int ins_compl_get_exp(pos_T *ini)
static buf_T *ins_buf = NULL; // buffer being scanned
pos_T *pos;
- char_u * *matches;
+ char_u **matches;
int save_p_scs;
bool save_p_ws;
int save_p_ic;
neovim@stitny (vim-8.2.3520 *)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment