Skip to content

Commit

Permalink
restored multiline support
Browse files Browse the repository at this point in the history
  • Loading branch information
marklee77 committed Dec 25, 2012
1 parent e0f3a6f commit 070e500
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugin/querycommandcomplete.vim
Expand Up @@ -139,7 +139,12 @@ function! s:GenerateCompletions(findstart, base)
endfunction endfunction


function! QueryCommandComplete(findstart, base) function! QueryCommandComplete(findstart, base)
if getline('.') =~ g:qcc_pattern let l = line('.')

while l > 1 && getline(l) !~ ':' && getline(l - 1) !~ '^\s*$'
let l -= 1
endwhile
if getline(l) =~ g:qcc_pattern
return s:GenerateCompletions(a:findstart, a:base) return s:GenerateCompletions(a:findstart, a:base)
endif endif
endfunction endfunction
Expand Down

0 comments on commit 070e500

Please sign in to comment.