You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be the result of a bug in vim and neovim, but it appears that passing an escaped directory path to isdirectory results in a false negative. This prevents a bookmark such as /Path/To Directory from changing directories, though it will still open the directory in netrw.
This effects startify because the escaped path is passed into s:check_user_options(path) and the checks for isdirectory there prevent it from ever attempting to change directory.
Inconsistently, execute 'lcd' dir or execute 'lcd' fnameescape(dir) both work just fine. It only appears to be an issue with passing as a parameter. I also don't see a method for unescaping the path. I thought about using substitution, but that would break for Windows paths.
Not sure if there's another work around here besides renaming my directories.
The text was updated successfully, but these errors were encountered:
ViViDboarder
pushed a commit
to ViViDboarder/vim-startify
that referenced
this issue
Jun 28, 2023
This may be the result of a bug in vim and neovim, but it appears that passing an escaped directory path to
isdirectory
results in a false negative. This prevents a bookmark such as/Path/To Directory
from changing directories, though it will still open the directory in netrw.I've done the following debugging:
This effects
startify
because the escaped path is passed intos:check_user_options(path)
and the checks forisdirectory
there prevent it from ever attempting to change directory.Inconsistently,
execute 'lcd' dir
orexecute 'lcd' fnameescape(dir)
both work just fine. It only appears to be an issue with passing as a parameter. I also don't see a method for unescaping the path. I thought about using substitution, but that would break for Windows paths.Not sure if there's another work around here besides renaming my directories.
The text was updated successfully, but these errors were encountered: