do not expect icase of match:
image.png (view on web)
did not reflect the change of base:
// os.if -> the i
highlighted -> changed to os.i which backspace the f
-> the i
highlight missed.
image.png (view on web)
work.
v9.1.493
linux
#14694
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
if ok, let me know if was intended to design like that, then let it be..
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
@glepnir if ok, let me know if was intended to design like that, then let it be..
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
and @chrisbra what do you think?
i supposed this two hl groups fit for genenral compl, not regarding to fuzzy or something as seems you said somewhere.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
emm a simple reprodcue script will be useful
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
and @chrisbra what do you think?
i supposed this two hl groups fit for any compl, and not regarding to fuzzy or something, as seems you said somewhere.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
diff --git a/src/insexpand.c b/src/insexpand.c index 28e4d344e..c673df927 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -1448,7 +1448,7 @@ ins_compl_show_pum(void) char_u * ins_compl_leader(void) { - return compl_leader; + return compl_leader != NULL ? compl_leader : compl_orig_text; } /*
could you try this patch.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
and @chrisbra what do you think?
i supposed this two hl groups fit for any compl, and not regarding to fuzzy or something, as seems you said somewhere.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
you publish duplicate comments.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
you publish duplicate comments.
yea~ sry, we are living in the great cn, sry for the wonderful network~ 😅
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
could you try this patch.
yes, the item 2 seems worked after this patch
// item 1 remained.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
okay good to knwo. I am still finding a way to reproduce the peoblem 1.. could you provide more information about problem 1
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
It may be necessary to store the start and the end of the matched position when using non-fuzzy completion, so that highlighting of matched text works when using 'ignorecase', but I'm not entirely sure about that. That'll also be required to highlight matched text for cmdline non-fuzzy completion, as in cmdline completion the pattern can contain wildcards.
Speaking of that, should matched text be highlighted for cmdline completion as well?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
i have not tried to use fuzzy
of completeopt yet, but generally fuzzy should be same like the case ignored.
// it is not the caseignore
, but the icase of compl items attribute.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
ins_compl_bs then invoke ins_compl_free it free leader like currently leader is cl
both freed. so when bs a leader the ins_compl_leader get a null pointer then nothing highlighted. but the compl_orig_text
keep the original value.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
i have not tried to use
fuzzy
of completeopt yet, but generally fuzzy should be same like the case ignored. // it is not thecaseignore
, but the icase of compl items attribute.
you mean the problem 1 is run with the completeopt no fuzzy right ?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
no, it is not regarding to fuzzy of completeopt option, or to fuzzy
as common sense usually its case was not matter.
icase is a complete_item attribute.
// not sure pum in cmdline, it maybe no icase attribute.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
could you please provide a reproduce step with a mininal config ..
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
reproduced.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Speaking of that, should matched text be highlighted for cmdline completion as well?
should be :)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Speaking of that, should matched text be highlighted for cmdline completion as well?
i donot know, i am not a fan of pum in cli, i usually like its behavior as in bash cli.
// but as i know @yegappan impl it as different way like insert-compl, it should be some different?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Closed #15021 as completed via f189138.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.