Not signed in (Sign In)

Categories

Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthori
    • CommentTimeFeb 16th 2007 edited
     permalink

    Can anyone test the following snippet and confirm that it is a bug?

    { title: 'Headings' tab_trigger: 'he' scope: 'text.html' content: '<h${1:1}${2:${3: id="${4:example}"}${5: class="${6:test}"}}>${SELECTED_TEXT}$7</h$1> $0' }

    Steps to reproduce:
    1. Type “he” and press Tab.
    2. Press Tab once to select the second tab stop block.
    3. Press Backspace to remove it.
    4. Press Tab again to move to tab stop 7.

    Now step 4 does not happen as expected. Instead, the final “less than”/angle bracket was selected followed by spaces and the newline below it.

    The snippet works perfectly in other situations where you remove any of the inner tab stops, ie, backspacing on the third tab stop, fourth tab stop and so on.

    •  
      CommentAuthortstrokes
    • CommentTimeFeb 16th 2007
     permalink

    This this is what hilights for me.

    • CommentAuthori
    • CommentTimeFeb 16th 2007
     permalink

    tstrokes: This this is what hilights for me.

    Yeah, I forgot to mention the spaces behind the angle bracket. Edited my post above to reflect it.

    • CommentAuthormartincohen
    • CommentTimeFeb 16th 2007 edited
     permalink

    Yeah, it’s a bug… It’s caused by deleting the nested placeholders.

    • CommentAuthori
    • CommentTimeFeb 16th 2007
     permalink

    Thanks martin. I wasn’t sure about the maximum nesting depth that is allowed on tab stops.

  1.  permalink

    Ok, bug found and squashed, thanx for the report.