Skip to content

Commit

Permalink
CompletionReset: feed the original BS key with mapping enabled
Browse files Browse the repository at this point in the history
Backspace might have been mapped by the user, and this should be
executed.
  • Loading branch information
blueyed committed Jun 9, 2014
1 parent 24780b9 commit c8c1876
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/supertab.vim
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,10 @@ function! s:CompletionReset(char) " {{{
" entries in that var.
if (a:char == "\<bs>" || a:char == "\<c-h>") && s:IsNoCompleteAfterReset()
if !s:WillComplete(col('.') - 1)
" exit from completion mode then issue the currently requested backspace
call feedkeys("\<space>\<bs>\<bs>", 'n')
" Exit from completion mode then issue the currently requested
" backspace (mapped).
call feedkeys("\<space>\<bs>", 'n')
call feedkeys("\<bs>", 'mt')
return ''
endif
endif
Expand Down

0 comments on commit c8c1876

Please sign in to comment.