Hi

I see a bug with the netrw plugin (v136 as in vim-7.2.394)
when directories contain a backslash.

Steps to reproduce:

1) Create the following directories & files from shell:

   $ mkdir foobar  foo\\bar
   $ touch foobar/{a,b}  foo\\bar/{c,d}

   # We just created the following 2 directories and 4 files:
   $ find . -print
   .
   ./foo\bar
   ./foo\bar/d
   ./foo\bar/c
   ./foobar
   ./foobar/b
   ./foobar/a

2) Create a minimalistic ~/.vimrc file:

   let g:netrw_liststyle=3

3) Start Vim with:

   $ vim .

4) Vim netrw plugin shows content of directory "." which contain
   directories "foobar and "foo\bar"

   Put cursor on directory "foobar" and press <Enter>.
   Vim shows 2 files "a" and "b" in this directory (correct so far)

   Put cursor in directory "foo\bar" and press <Enter>.
   It shows 2 files "a" and "b" inside this directory (***INCORRECT***)
   It should show "c" and "d".

This is what I see:

" ============================================================================
" Netrw Directory Listing                                        (netrw v136)
"   /home/pel/test/test/foo\ bar
"   Sorted by      name
"   Sort sequence:
[\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
"   Quick Help: <F1>:help  -:go up dir  D:delete  R:rename  s:sort-by  x:exec
" ============================================================================
../
test/
| foo\bar/
| | a
| | b
| foobar/
| | a
| | b

This is what I would expect to see:

" ============================================================================
" Netrw Directory Listing                                        (netrw v136)
"   /home/pel/test/test/foo\ bar
"   Sorted by      name
"   Sort sequence:
[\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
"   Quick Help: <F1>:help  -:go up dir  D:delete  R:rename  s:sort-by  x:exec
" ============================================================================
../
test/
| foo\bar/
| | c
| | d
| foobar/
| | a
| | b

-- Dominique

-- 
You received this message from the "vim_use" 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

Reply via email to