ba74b99fd7
The core issue is that in some versions of vim resolve() will remove trailing slashes, while in others it will not. This lead to commit bc745b6e99888c97c7e8f6ff3b7e8f605cab5af1 attempting to address a double slash problem. However, that broke symlink detection on systems where resolve() removes trailing slashes. This new function just calls vim's resolve() function, but removes trailing slashes if they exist.