Skip to content

Commit 9dd9756

Browse files
committed
Fix tab complete on Windows
1 parent e082f36 commit 9dd9756

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

autoload/rails.vim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function! s:pathjoin(...) abort
148148
while j < len(list)
149149
let escaped = substitute(list[j],'[\\, ]','\\&','g')
150150
if exists("+shellslash") && !&shellslash
151-
let escaped = substitute(escaped,'^\(\w:\\\)\\','\1','','')
151+
let escaped = substitute(escaped,'^\(\w:\\\)\\','\1','')
152152
endif
153153
let path .= ',' . escaped
154154
let j += 1
@@ -1550,9 +1550,6 @@ endfunction
15501550

15511551
function! s:Complete_find(ArgLead, CmdLine, CursorPos)
15521552
let paths = s:pathsplit(&l:path)
1553-
if has("win32") || has("win64")
1554-
call map(paths,'s:gsub("\\","/")')
1555-
endif
15561553
let seen = {}
15571554
for path in paths
15581555
if s:startswith(path,rails#app().path()) && path !~ '[][*]'

0 commit comments

Comments
 (0)