https://github.com/vim/vim/pull/18313
(2 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
@chrisbra commented on this pull request.
In src/insexpand.c:
> @@ -5863,8 +5863,12 @@ find_common_prefix(size_t *prefix_len, int curbuf_only) { if (first == NULL) { - first = compl->cp_str.string; - len = (int)STRLEN(first); + if (STRNCMP(ins_compl_leader(), compl->cp_str.string, + ins_compl_leader_len()) == 0)
can you move this if condition into the if condition above?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@girishji commented on this pull request.
In src/insexpand.c:
> @@ -5863,8 +5863,12 @@ find_common_prefix(size_t *prefix_len, int curbuf_only) { if (first == NULL) { - first = compl->cp_str.string; - len = (int)STRLEN(first); + if (STRNCMP(ins_compl_leader(), compl->cp_str.string, + ins_compl_leader_len()) == 0)
Thanks, done.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@girishji pushed 2 commits.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
@chrisbra commented on this pull request.
In src/insexpand.c:
> @@ -5861,7 +5861,8 @@ find_common_prefix(size_t *prefix_len, int curbuf_only) if (!match_limit_exceeded && (!curbuf_only || cpt_sources_array[cur_source].cs_flag == '.')) { - if (first == NULL) + if (first == NULL && STRNCMP(ins_compl_leader(), + compl->cp_str.string, ins_compl_leader_len()) == 0)
is this now correct? Don't we need to also change the else below to else if (first != NULL)
? Or should we also run into the else case when the strcmp()
fails?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@girishji commented on this pull request.
In src/insexpand.c:
> @@ -5861,7 +5861,8 @@ find_common_prefix(size_t *prefix_len, int curbuf_only) if (!match_limit_exceeded && (!curbuf_only || cpt_sources_array[cur_source].cs_flag == '.')) { - if (first == NULL) + if (first == NULL && STRNCMP(ins_compl_leader(), + compl->cp_str.string, ins_compl_leader_len()) == 0)
yes it needs a check.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Thanks.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.