Skip to content

Commit c39e5e3

Browse files
committed
fix completion items
1 parent c128d0c commit c39e5e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/gist.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ endif
1212
let g:loaded_gist_vim = 1
1313

1414
function! s:CompleteArgs(arg_lead,cmdline,cursor_pos)
15-
return ["-p", "-P", "-a", "-m", "-e", "-s", "-d", "+1", "-1", "-f", "-c", "-l", "-la", "-ls", "-b",
15+
return filter(copy(["-p", "-P", "-a", "-m", "-e", "-s", "-d", "+1", "-1", "-f", "-c", "-l", "-la", "-ls", "-b",
1616
\ "--listall", "--liststar", "--list", "--multibuffer", "--private", "--public", "--anonymous", "--description", "--clipboard",
1717
\ "--rawurl", "--delete", "--edit", "--star", "--unstar", "--fork", "--browser"
18-
\ ]
18+
\ ]), 'stridx(v:val, a:arg_lead)==0')
1919
endfunction
2020

2121
command! -nargs=? -range=% -bang -complete=customlist,s:CompleteArgs Gist :call gist#Gist(<count>, "<bang>", <line1>, <line2>, <f-args>)

0 commit comments

Comments
 (0)