randomphrase / company-c-headers

Auto-completion for C/C++ headers using Company
GNU General Public License v2.0
76 stars 9 forks source link

Completion does not insert selected item when used with company-irony #15

Open luisgerhorst opened 7 years ago

luisgerhorst commented 7 years ago

I have my company backends set to (company-c-headers company-irony), (add-hook 'irony-mode-hook #'company-irony-setup-begin-commands) is in my init.el, here's how to reproduce the bug:

  1. Start typing #include and use company-irony's completion candidate to complete it to #include <| (where | represents the cursor, at this point my company frontend is already started, I think company-irony does that)
  2. Type some string and use M-n / M-p to select one of company-c-headers's completion candidates.
  3. The candidate does not get inserted, the completion menu disappears and I am left with #include |>.

Can you reproduce the problem? Do you know where's the problem here? Could be both a bug in company, company-irony or company-c-headers I guess. Thanks!

luisgerhorst commented 7 years ago
1

RET

2

s

3

RET

4

In the last one the > is hidden under the cursor.