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

_lp_shorten_path: fix error when parsing folder with special characters #369

Closed
wants to merge 1 commit into from

Conversation

SamK
Copy link
Contributor

@SamK SamK commented May 28, 2015

I discovered that changing directory with a long folder including spaces and dots raise an error message.

Issues

  1. an error message shows up
  2. the current directory in the prompt does not update

How to reproduce

% cd verylong\ folder\ with\ a.dot
_lp_shorten_path:local:31: not valid in this context: a.dot 
  • the problem only appears in zsh; bash does not seem to be affected
  • the issue is easier to reproduce with a narrow window ($COLUMNS is smaller)

dolmen added a commit that referenced this pull request May 28, 2015
@dolmen
Copy link
Collaborator

dolmen commented Jun 9, 2015

Merged a few weeks ago into develop.
Thanks!

@dolmen dolmen closed this Jun 9, 2015
@dolmen dolmen added bug path Related to current working directory lookup or display labels Jun 9, 2015
@SamK
Copy link
Contributor Author

SamK commented Jun 9, 2015

Thank's to you for your very nice project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug path Related to current working directory lookup or display
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants