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

bug: opening multiple files in a directory containing space is broken #346

Closed
xfzv opened this issue Aug 9, 2024 · 2 comments · Fixed by #347
Closed

bug: opening multiple files in a directory containing space is broken #346

xfzv opened this issue Aug 9, 2024 · 2 comments · Fixed by #347

Comments

@xfzv
Copy link
Contributor

xfzv commented Aug 9, 2024

To reproduce

  1. Create a directory named foo_bar with two or more let's say markdown files with some content in them
  2. Copy foo_bar directory and rename it to foo bar
  3. Use repro.lua
  4. nvim -u repro.lua
  5. Run :Yazi, go to foo_bar directory first
  6. Select all files and press Enter
  7. All files are correctly opened
  8. Repeat with foo bar directory this time
  9. All buffers are empty and the first one listed with :buffers is /path/to/foo (shouldn't be listed since foo bar is the directory, not a file)

Edit: the actual :buffers list with foo bar directory:

1 %a   "/tmp/foo"                     line 1
3      "bar/1.md"                     line 0
4      "bar/2.md"                     line 0
5      "bar/3.md"                     line 0
6      "bar/4.md"                     line 0
@mikavilpas
Copy link
Owner

This is indeed a bug, thanks for reporting.

It should be fixed with the PR linked above - can you try that out?

@xfzv
Copy link
Contributor Author

xfzv commented Aug 9, 2024

All good after updating to f7be6c1 👍

Thank you!

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

Successfully merging a pull request may close this issue.

2 participants