On Thu, Jul 4, 2013 at 12:14 AM, Bram Moolenaar <[email protected]> wrote:

>
> Patch 7.3.1297
> Problem:    findfile() directory matching does not work when a star follows
>             text. (Markus Braun)
> Solution:   Make a wildcard work properly. (Christian Brabandt)
> Files:      src/misc2.c, src/testdir/test89.in, src/testdir/test89.ok
>

With this patch, upward search fails when search is started from
non-existing directory.

Steps To Reproduce:
  $ mkdir -p foo/bar/baz
  $ touch foo/hoge.txt
  $ cd foo
  $ vim -u NONE -N
  :echo "test1: " . findfile("hoge.txt", getcwd() . "/bar/baz;")
  :echo "test2: " . findfile("hoge.txt", getcwd() . "/not/exists;")
  :echo "test3: " . findfile("hoge.txt", "foo;")

Result with 7.3.1296:
  test1: hoge.txt
  test2: hoge.txt
  test3: hoge.txt

Result with 7.3.1297:
  test1: hoge.txt
  test2:
  test3:


-- 
Yukihiro Nakadaira - [email protected]

-- 
-- 
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