On 2020-06-15, dylnmc wrote:
> @brammool I have been following this issue, and I was hoping that there could
> be an optional parameter to remove all forward slashes at the front except for
> the first one.
>
> This is because I am using paths as keys to a dictionary, and without simplify
> () rem
On 2020-06-15, lacygoill wrote:
> This is not a bug. The simplify() function should leave two leading
> slashes alone.
>
> Although, if the specification says that more than 2 leading slashes should be
> treated as a single slash, then maybe this could be considered as a bug:
>
> echo sim
On 2020-06-15, lacygoill wrote:
> Describe the bug
>
> simplify() does not reduce multiple leading path separators.
>
> To Reproduce
>
> Run this shell command:
>
> vim -Nu NONE -es +"pu=simplify('//tmp')|%p" +'qa!'
>
> The output is //tmp.
>
> Expected behavior
>
> The output is /tmp.
>
>