Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm adds space after completing directory name in M-x shell #2274

Closed
holtzermann17 opened this issue Jan 27, 2020 · 4 comments
Closed

Helm adds space after completing directory name in M-x shell #2274

holtzermann17 opened this issue Jan 27, 2020 · 4 comments

Comments

@holtzermann17
Copy link

holtzermann17 commented Jan 27, 2020

Expected behavior

I would expect to see "cd ~/Downloads/" <- no trailing space as the result of completion when I press cd ~/Down<TAB> in a shell buffer. This behaviour is useful because it allows to change to subdirectories quickly, by pressing TAB again.

Actual behavior (from emacs-helm.sh if possible, see note at the bottom)

Instead, I see "cd ~/Downloads/ " <- with a trailing space.

Steps to reproduce (recipe)

Reproduction:

~/.emacs.d/elpa/helm-20200126.1804$ ./emacs-helm.sh
M-x shell
cd ~/Down<TAB>

...Note that the Expected Behaviour above is produced if I instead run emacs -Q --no-site-file. In other words, Helm changes a default behaviour in a way that isn't entirely obvious, since I never see a Helm buffer pop up in this interaction.

Describe versions of Helm, Emacs, operating system, etc.

GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-01-27

Are you using emacs-helm.sh to reproduce this bug? (yes/no):

Yes

Are you using Spacemacs? (yes/no):

No

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Jan 27, 2020 via email

@manuel-uberti
Copy link
Member

@thierryvolpiatto just an FYI. I cloned helm repository and from emacs-helm.sh the problem is still present.

thierryvolpiatto added a commit that referenced this issue Dec 27, 2020
Don't add space after completing a (possible) directory in shell completion.

For this the exit-function should be called with 'exact and not 'finished.
@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Dec 27, 2020 via email

@manuel-uberti
Copy link
Member

Fantastic, it works as expected now. Thank you for the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants