Skip to content

Commit b136fd2

Browse files
committed
s:list_dir(): escape {} braces
fix #182 ref #135 ref 3020cce
1 parent 1b79d10 commit b136fd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dirvish.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ endif
5353

5454
function! s:list_dir(dir) abort
5555
" Escape for glob().
56-
let dir_esc = escape(substitute(a:dir,'\[','[[]','g'),'{}')
56+
let dir_esc = escape(substitute(a:dir,'\[','[[]','g'),'{}^$')
5757
let paths = s:globlist(dir_esc.'*')
5858
"Append dot-prefixed files. glob() cannot do both in 1 pass.
5959
let paths = paths + s:globlist(dir_esc.'.[^.]*')

0 commit comments

Comments
 (0)