ervandew / supertab

Perform all your vim insert mode completions with Tab
3.18k stars 214 forks source link

Missing highlight update in popup completion menu #217

Open dan-t opened 3 years ago

dan-t commented 3 years ago

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! :)

ervandew commented 3 years ago

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

ervandew commented 3 years ago

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?

dan-t commented 3 years ago

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 commented 3 years ago

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'?