Skip to content

Commit 9591a26

Browse files
committed
fixup! complete_files: more fixes
1 parent 5113a49 commit 9591a26

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
@@ -240,16 +240,16 @@ function! grepper#complete_files(lead, _line, _pos)
240240
if path[0:1] ==# '~/'
241241
let home = expand('~')
242242
let home_len = len(home)
243-
return map(split(globpath(home, path[2:].'*'), '\n'), 'head . ''~'' . v:val[home_len:] . (isdirectory(v:val) ? s:slash : '''')')
243+
return map(split(globpath(home, path[2:].'*'), '\n'), "head . '~' . v:val[home_len:] . (isdirectory(v:val) ? s:slash : '')")
244244
" handle (explicit) relative paths
245245
elseif path[0:1] ==# './'
246-
return map(split(globpath('.'.s:slash, path[2:].'*'), '\n'), 'head . v:val . (isdirectory(v:val) ? s:slash : '''')')
246+
return map(split(globpath('.'.s:slash, path[2:].'*'), '\n'), "head . v:val . (isdirectory(v:val) ? s:slash : '')")
247247
" handle absolute paths
248248
elseif path[0] ==# '/'
249-
return map(split(globpath(s:slash, path.'*'), '\n'), 'head . v:val[1:] . (isdirectory(v:val) ? s:slash : '''')')
249+
return map(split(globpath(s:slash, path.'*'), '\n'), "head . v:val[1:] . (isdirectory(v:val) ? s:slash : '')")
250250
" handle relative paths
251251
else
252-
return map(split(globpath('.'.s:slash, path.'*'), '\n'), 'head . ''.'' . v:val[1:] . (isdirectory(v:val) ? s:slash : "")')
252+
return map(split(globpath('.'.s:slash, path.'*'), '\n'), "head . '.' . v:val[1:] . (isdirectory(v:val) ? s:slash : '')")
253253
endif
254254
endfunction
255255

0 commit comments

Comments
 (0)