Skip to content
Browse files

Fixed completion

  • Loading branch information...
1 parent 93adb6a commit 07bb33858a95935ac269282e511b8d6a845d5d22 @jmcomets committed Aug 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/pony.vim
View
2 plugin/pony.vim
@@ -67,7 +67,7 @@ function! s:DjangoGoToComplete(ArgLead, CmdLine, CursorPos)
" files at "s:goto_complete_dict[s:filename]"
let l:findcmd = "find */ -type f -name "
\ . shellescape(l:filename)
- \ . " | grep -oE '^[^/]+'"
+ \ . " | sed 's/\\([^\\/]*\\)\\/" . escape(l:filename, './') . "/\\1/g'"
\ . " | grep " . shellescape(a:ArgLead)
let l:folders = system(l:findcmd)
return split(l:folders, "\n")

0 comments on commit 07bb338

Please sign in to comment.
Something went wrong with that request. Please try again.