Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 9b898d31988640f2bbc07fc35f588bd1247ffa33 1 parent 32eb47c
@tpope authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/unimpaired.vim
View
4 plugin/unimpaired.vim
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.