Permalink
Browse files

Fix ././././. issue with [o/]o

  • Loading branch information...
1 parent 32eb47c commit 9b898d31988640f2bbc07fc35f588bd1247ffa33 @tpope committed Nov 13, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/unimpaired.vim
View
@@ -34,9 +34,9 @@ function! s:entries(path)
let path = substitute(a:path,'[\\/]$','','')
let files = split(glob(path."/.*"),"\n")
let files += split(glob(path."/*"),"\n")
- call filter(files,'v:val !=# "." && v:val !=# ".."')
- call filter(files,'v:val[-4:-1] !=# ".swp" && v:val[-1:-1] !=# "~"')
call map(files,'substitute(v:val,"[\\/]$","","")')
+ call filter(files,'v:val !~# "[\\\\/]\\.\\.\\=$"')
+ call filter(files,'v:val[-4:-1] !=# ".swp" && v:val[-1:-1] !=# "~"')
return files
endfunction

0 comments on commit 9b898d3

Please sign in to comment.