phpcd.vim: Infinite loop when create a buffer for a new file in a directory .

Hello lvht,

If you create a buffer for a new file in a directory that doesn’t exist, the phpcd#GetRoot() function will fall into an infinite loop.

For example, in the project root(with no .phpcd.vim), if I do vi foo/test.php (dir foo does not exist) and expand("%:p:h") seems to return foo.

Kind regards.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 15 (8 by maintainers)

Most upvoted comments

And nvim --noplugin a/b/c.txt does not block in my machine.