Skip to content

Commit

Permalink
last change broke scrolling for <c-p> context default, fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
ervandew committed Jun 10, 2011
1 parent 1e3cc50 commit 80ec653
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/supertab.vim
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,11 @@ function! s:SuperTab(command)
" already in completion mode and not resetting for longest enhancement, so
" just scroll to next/previous
elseif pumvisible() && !b:complReset
let type = b:complType == 'context' ? b:complTypeContext : b:complType
if a:command == 'n'
return b:complType == "\<c-p>" ? "\<c-p>" : "\<c-n>"
return type == "\<c-p>" ? "\<c-p>" : "\<c-n>"
endif
return b:complType == "\<c-p>" ? "\<c-n>" : "\<c-p>"
return type == "\<c-p>" ? "\<c-n>" : "\<c-p>"
endif

" handle 'context' completion.
Expand Down

0 comments on commit 80ec653

Please sign in to comment.