On 09/09/2013 11:38, Christian Brabandt wrote:
On Mon, September 9, 2013 12:31, Mike Williams wrote:
On 09/09/2013 10:56, Nikolay Pavlov wrote:
On Sep 9, 2013 1:40 PM, "Mike Williams"
<[email protected]>
wrote:
I had tried calls to escape(..., '\') and that made no difference.

Where did you do that? You need to make sure, that you only escape
the right side of the comparison and not both sides.

Facepalm.

Changing the test

        if l:d !~ "^\V" . s:dir1

makes no difference.

What happens, if you changed that line to:

if l:d !~ escape(s:dir1, '\\')

Yep that works. Classic case of using regex to solve a problem and getting two problems. Just needed to check a substring which Nikolay suggested.

TTFN

Mike
--
Old enough to know better, but young enough to not care.

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui