supertab icon indicating copy to clipboard operation
supertab copied to clipboard

Missing highlight update in popup completion menu

Open dan-t opened this issue 3 years ago • 4 comments

When I'm pressing TAB in the popup completion menu, then the next entry is chosen and displayed at the cursor, but the highlighting in the popup menu isn't updated and still at the previous entry. If I'm instead pressing C-N then both gets correctly updated.

I'm getting the same behavior with vim 8.1 and gvim 8.1 on Ubuntu 20.04 with the current github version of supertab (commit f0093ae12a9115498f887199809a6114659fc858).

Any ideas? Thanks for any help!

By the way, I'm loving supertab and might use it already for longer than a decade! :)

dan-t avatar May 26 '21 15:05 dan-t

if you run :version in vim, what does the Included patches: line show?

ervandew avatar May 26 '21 16:05 ervandew

woops, missed that you are on 8.1, not 8.2. hmm, not sure what would cause that. do you have any other plugins that you can disable to see if the problem goes away?

ervandew avatar May 26 '21 16:05 ervandew

I've found the issue, the reason is a hack I've applied.

I want to have 'set completeopt=' for the case and 'set completeopt=menuone,longest' for the case.

So I've hacked this setting into the beginning of the SuperTab function and at the beginning of the omni-completion function, and this causes the described issue.

Would it somehow be possible to have different 'completeopt'?

dan-t avatar Jun 01 '21 17:06 dan-t

I've found the issue, the reason is a hack I've applied.

I want to have 'set completeopt=' for the case <c-p> and 'set completeopt=menuone,longest' for the case <c-x><c-o>.

So I've hacked this setting into the beginning of the SuperTab function and at the beginning of the omni-completion function, and this causes the described issue.

Would it somehow be possible to have different 'completeopt'?

dan-t avatar Jun 01 '21 17:06 dan-t