Skip to content

company-capf incorrectly completes when Eshell is in the command position #1322

@ethan-leba

Description

@ethan-leba

Describe the issue

When completing in the command position of Eshell, the completions will only list the most current segment of the path, but selecting the completion will replace the entire path.

Steps to reproduce

  1. Open eshell
  2. Type in /bin/ki
  3. Press RET to company-complete it

Expected behavior

Expected completion to replace only the current segment of path.

M-x company-diag output

Emacs 28.1 (aarch64-apple-darwin21.3.0) of 2022-04-10 on MacBook-Pro.attlocal.net
Company 0.9.13

company-backends: (company-capf)

Used backend: company-capf
Value of c-a-p-f: (pcomplete-completions-at-point t)
Major mode: eshell-mode
Prefix: "/bin/ki"
Completions:
  #("kill" 0 4 (face (completions-common-part)))

Screenshots

Screen Shot 2022-04-19 at 4 08 20 PM

Screen Shot 2022-04-19 at 4 08 25 PM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions