Problem with suptertab and <BS> #52

Open
kusnier opened this Issue Apr 12, 2012 · 5 comments

Projects

None yet

5 participants

@kusnier
kusnier commented Apr 12, 2012

Minimal installation for reproduction:
https://github.com/kusnier/supertab_smartinput_problem

How to reproduce:

$ vim

Enter: test<TAB><BS>

Vim is now in a recursion. Abort with <C-c>

Result:

test<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("\<SNR>12__trigger_or_fallback("")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")")
@kusnier
kusnier commented Apr 12, 2012

This problem occurs if let g:SuperTabLongestEnhanced=1 and set completeopt=longest is set in vimrc.

@kana
Owner
kana commented Apr 12, 2012

Thank you for reporting. I'll investigate it later.

@ryuslant

Don't know if its a related issue or a separate one, but when supertab is loaded with smartinput,

{ expands to:
{
#}

instead of
{
#
}

@lkraav
lkraav commented May 24, 2012

I am also seeing the expansion problem mentioned by @ryuslant

@cztchoice

I am also seeing the expansion problem mentioned by @ryuslant too
Can someone give some suggesetion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment