Skip to content

Commit 9428af9

Browse files
committed
fixup! complete_files: more fixes
1 parent 8e7d500 commit 9428af9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugin/grepper.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,16 +236,16 @@ function! grepper#complete_files(lead, _line, _pos)
236236
if path[0:1] ==# '~/'
237237
let home = expand('~')
238238
let home_len = len(home)
239-
return map(split(globpath(home, path[2:].'*'), '\n'), 'head . ''~'' . v:val[home_len:] . (isdirectory(v:val) ? s:slash : '''')')
239+
return map(split(globpath(home, path[2:].'*'), '\n'), "head . '~' . v:val[home_len:] . (isdirectory(v:val) ? s:slash : '')")
240240
" handle (explicit) relative paths
241241
elseif path[0:1] ==# './'
242-
return map(split(globpath('.'.s:slash, path[2:].'*'), '\n'), 'head . v:val . (isdirectory(v:val) ? s:slash : '''')')
242+
return map(split(globpath('.'.s:slash, path[2:].'*'), '\n'), "head . v:val . (isdirectory(v:val) ? s:slash : '')")
243243
" handle absolute paths
244244
elseif path[0] ==# '/'
245-
return map(split(globpath(s:slash, path.'*'), '\n'), 'head . v:val[1:] . (isdirectory(v:val) ? s:slash : '''')')
245+
return map(split(globpath(s:slash, path.'*'), '\n'), "head . v:val[1:] . (isdirectory(v:val) ? s:slash : '')")
246246
" handle relative paths
247247
else
248-
return map(split(globpath('.'.s:slash, path.'*'), '\n'), 'head . ''.'' . v:val[1:] . (isdirectory(v:val) ? s:slash : "")')
248+
return map(split(globpath('.'.s:slash, path.'*'), '\n'), "head . '.' . v:val[1:] . (isdirectory(v:val) ? s:slash : '')")
249249
endif
250250
endfunction
251251

0 commit comments

Comments
 (0)