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

Recent file opens as blank when PWD is not home directory #912

Closed
riddlew opened this issue Jun 14, 2021 · 2 comments
Closed

Recent file opens as blank when PWD is not home directory #912

riddlew opened this issue Jun 14, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@riddlew
Copy link

riddlew commented Jun 14, 2021

Description

If I have a file that is located in my home directory (say for example, C:\Users\username\projects\file.py), it will only open if my current directory is set to my home directory. If I cd to C:\Users\username, the file opens correctly. However, if I'm in a different directory such as C:\Users\username\Downloads, the file opens as blank. The tab's title also displays as "~projects\file.py". This issue only happens on my Windows machine and works fine on Linux.

Expected Behavior
File opens correctly.

Actual Behavior
Blank file opens.

Details

Reproduce
  1. Open file located in home directory (C:\Users\username\projects\file).
  2. Change directory to a different file in home directory (C:\Users\username\Downloads).
  3. Try to open recent file.
Environment
  • nvim --version output: NVIM v0.5.0-dev+1160-g0f7b6b2ef
  • Operating system: Windows
  • Telescope commit: 398a0d3
@riddlew riddlew added the bug Something isn't working label Jun 14, 2021
@l-kershaw
Copy link
Contributor

I think that this should have been fixed by nvim-lua/plenary.nvim#279

@riddlew can you confirm if this fixes your issue?

@riddlew
Copy link
Author

riddlew commented Dec 22, 2021

I just checked, and from what I can see it seems to have fixed the issue!

@riddlew riddlew closed this as completed Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants